Skip to content

Commit 8e84442

Browse files
authored
Add new s/S formats to timestamp styles (discord#7922)
Also cleans up the existing examples to match actual current behavior better, and adjusts the descriptions to use the standard CLDR names for these styles.
1 parent 45f0dcb commit 8e84442

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

docs/reference.mdx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -287,15 +287,17 @@ Using the markdown for either users, roles, or channels will usually mention the
287287

288288
###### Timestamp Styles
289289

290-
| Style | Example Output | Description |
291-
|-------|------------------------------|-----------------|
292-
| t | 16:20 | Short Time |
293-
| T | 16:20:30 | Long Time |
294-
| d | 20/04/2021 | Short Date |
295-
| D | 20 April 2021 | Long Date |
296-
| f \* | 20 April 2021 16:20 | Short Date/Time |
297-
| F | Tuesday, 20 April 2021 16:20 | Long Date/Time |
298-
| R | 2 months ago | Relative Time |
290+
| Style | Example Output | Description |
291+
|-------|----------------------------------|-------------------------|
292+
| t | 16:20 | Short Time |
293+
| T | 16:20:30 | Medium Time |
294+
| d | 20/04/2021 | Short Date |
295+
| D | April 20, 2021 | Long Date |
296+
| f \* | April 20, 2021 at 16:20 | Long Date, Short Time |
297+
| F | Tuesday, April 20, 2021 at 16:20 | Full Date, Short Time |
298+
| s | 20/04/2021, 16:20 | Short Date, Short Time |
299+
| S | 20/04/2021, 16:20:30 | Short Date, Medium Time |
300+
| R | 2 months ago | Relative Time |
299301

300302
\* Default style used when no style is specified.
301303

0 commit comments

Comments
 (0)