Skip to content

Commit 2bcfa84

Browse files
committed
changes
1 parent cbc5e8e commit 2bcfa84

File tree

1 file changed

+33
-13
lines changed

1 file changed

+33
-13
lines changed

hub/powertoys/run.md

Lines changed: 33 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -242,19 +242,39 @@ Examples:
242242

243243
#### Custom formats
244244
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. |
277+
258278

259279
### Unit converter plugin
260280

0 commit comments

Comments
 (0)