You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: hub/powertoys/run.md
+33-13Lines changed: 33 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -242,19 +242,39 @@ Examples:
242
242
243
243
#### Custom formats
244
244
The plugin includes a setting where custom formats can be defined. Custom formats are entered in a multiline text box which accepts one format per line.
245
-
The syntax is `<format name>=<format pattern>` for using the local time and `<format name>=UTC:<format pattern>` for using the Universal Time Convention (UTC).
246
-
The supported formats include all [standard patterns](https://learn.microsoft.com/dotnet/standard/base-types/custom-date-and-time-format-strings) and the following:
247
-
248
-
-`DOW`: Number of the day in the week.
249
-
-`WOM`: Number of week in the month.
250
-
-`WOY`: Number of the week in the year.
251
-
-`EAB`: Era abbreviation.
252
-
-`WFT`: Windows file time.
253
-
-`UXT`: Unix time stamp.
254
-
-`UMS`: Unix time stamp in milliseconds.
255
-
-`OAD`: OLE Automation date.
256
-
-`EXC`: Excel's 1900 based date value.
257
-
-`EXF`: Excel's 1904 based date value.
245
+
246
+
**Please use the following syntax:**
247
+
248
+
-`<Format name>=<Format pattern>` for using the local time.
249
+
-`<Format name>=UTC:<Format pattern>` for using the Universal Time Convention (UTC).
250
+
251
+
> [!NOTE]
252
+
> -`Format name`: Every charter except the equal sign is supported.
253
+
> -`Format pattern`: You can escape the pattern and the backslash itself as text by using a backslash as prefix.
254
+
255
+
**Examples:**
256
+
257
+
-`MyFormat=dd-MMMM-yyyy`
258
+
-`MySecondFormat=dddd (Da\y nu\mber: DOW)`
259
+
-`MyUtcFormat=UTC:hh:mm:ss`
260
+
261
+
262
+
**Supported format pattern:**
263
+
264
+
| Format pattern | Description |
265
+
| :--- | :--- |
266
+
| Standard pattern like `hh:mm:ss`. | Please see this [page](https://learn.microsoft.com/dotnet/standard/base-types/custom-date-and-time-format-strings) for more information.
267
+
|`DOW`| Number of the day in the week. |
268
+
|`WOM`| Number of week in the month. |
269
+
|`WOY`| Number of the week in the year. |
270
+
|`EAB`| Era abbreviation. |
271
+
|`WFT`| Windows file time as number. |
272
+
|`UXT`| Unix time stamp as number. |
273
+
|`UMS`| Unix time stamp in milliseconds as number. |
274
+
|`OAD`| OLE Automation date number. |
275
+
|`EXC`| Excel's 1900 based date value as number. |
276
+
|`EXF`| Excel's 1904 based date value as number. |
0 commit comments