Skip to content

Commit 3518ff2

Browse files
authored
Default to medium rather than short dateStyle (#813)
* Default to long rather than short dateStyle * A medium compromise
1 parent 3cfcb7d commit 3518ff2

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

exploration/default-registry-and-mf1-compatibility.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ Functions for formatting [date/time values](#operands) in the default registry a
8181
- `:time`
8282

8383
If no options are specified, each of the functions defaults to the following:
84-
- `{$d :datetime}` is the same as `{$d :datetime dateStyle=short timeStyle=short}`
85-
- `{$d :date}` is the same as `{$d :date style=short}`
84+
- `{$d :datetime}` is the same as `{$d :datetime dateStyle=medium timeStyle=short}`
85+
- `{$d :date}` is the same as `{$d :date style=medium}`
8686
- `{$t :time}` is the same as `{$t :time style=short}`
8787

8888
> [!NOTE]
@@ -166,8 +166,8 @@ The function `:date` has these function-specific _style_ options:
166166
- `style`
167167
- `full`
168168
- `long`
169-
- `medium`
170-
- `short` (default)
169+
- `medium` (default)
170+
- `short`
171171
172172
The function `:time` has these function-specific _style_ options:
173173
- `style`
@@ -300,7 +300,7 @@ How to write an MF1 format or selector in MF2:
300300
| Plural (selector) | `{num,plural, ...}` | `.match {$num :plural}`<br/>`.match {$num :number}` | |
301301
| Ordinal (selector) | `{num,selectordinal, ...}` | `.match {$num :ordinal}`<br/>`.match {$num :number select=ordinal}` | |
302302
| Ordinal (format) | `{num,ordinal}` | | missing |
303-
| Date | `{date,date}` | `{$date :date}`<br/>`{$date :datetime}` | short date is default |
303+
| Date | `{date,date}` | `{$date :date}`<br/>`{$date :datetime}` | medium date is default |
304304
| Date | `{date,date,short}` | `{$date :date style=short}`<br/>`{$date :datetime dateStyle=short}` | also medium,long,full |
305305
| Time | `{date,time}` | `{$date :time}`<br/>`{$date :datetime timeStyle=short}` | shorthand or timeStyle required |
306306
| Date | `{date,time,short}` | `{$date :time style=short}`<br/>`{$date :datetime timeStyle=short}` | also medium,long,full |

spec/registry.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ The function `:datetime` is used to format date/time values, including
503503
the ability to compose user-specified combinations of fields.
504504
505505
If no options are specified, this function defaults to the following:
506-
- `{$d :datetime}` is the same as `{$d :datetime dateStyle=short timeStyle=short}`
506+
- `{$d :datetime}` is the same as `{$d :datetime dateStyle=medium timeStyle=short}`
507507
508508
> [!NOTE]
509509
> The default formatting behavior of `:datetime` is inconsistent with `Intl.DateTimeFormat`
@@ -633,7 +633,7 @@ are encouraged to track development of these options during Tech Preview:
633633
The function `:date` is used to format the date portion of date/time values.
634634
635635
If no options are specified, this function defaults to the following:
636-
- `{$d :date}` is the same as `{$d :date style=short}`
636+
- `{$d :date}` is the same as `{$d :date style=medium}`
637637
638638
#### Operands
639639
@@ -648,8 +648,8 @@ The function `:date` has these _options_:
648648
- `style`
649649
- `full`
650650
- `long`
651-
- `medium`
652-
- `short` (default)
651+
- `medium` (default)
652+
- `short`
653653
654654
### The `:time` function
655655

0 commit comments

Comments
 (0)