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: docs/ldml/tr35-dates.md
+21-19Lines changed: 21 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1259,7 +1259,7 @@ The calculation of the first day of the week depends on various fields in a loca
1259
1259
1260
1260
This element is for data that indicates, for various regions, the preferred time cycle in the region, as well as all time cycles that are considered acceptable in the region. The defaults are those specified for region 001.
1261
1261
1262
-
There is a single `preferred` value, and multiple `allowed` values. The meanings of the values H, h, K, k, b and B are defined in [Date Field Symbol Table](#Date_Field_Symbol_Table). The `allowed` values are in preference order, and are used with the 'C' hour skeleton pattern symbol.
1262
+
There is a single `preferred` value, and multiple `allowed` values. The meanings of the values H, h, K, k, b and B are defined in [Date Field Symbol Table](#Date_Field_Symbol_Table). The `allowed` values are in preference order; they are used with the 'C' hour skeleton pattern symbol and the `c12` and `c24` values for the [Unicode Hour Cycle Identifier](tr35.md#UnicodeHourCycleIdentifier).
1263
1263
1264
1264
For example, in the following, RU (Russia) is marked as using only 24 hour time, and in particular the 24 hour time that goes from 0..23 (H), rather than from 1..24 (k).
1265
1265
@@ -2650,8 +2650,10 @@ The choices are:
2650
2650
3.**H12:** Display hours numbered from 1 through 12 (the most common 12-hour clock)
2651
2651
4.**H23:** Display hours numbered from 0 through 23 (the most common 24-hour clock)
2652
2652
5.**H24:** Display hours numbered from 1 through 24
2653
+
6.**Clock12:** Display hours using a 12-hour clock preferred by the locale
2654
+
7.**Clock24:** Display hours using a 24-hour clock preferred by the locale
2653
2655
2654
-
Typically, locales will display a day period on H11and H12, but the day period could be any of those allowed by CLDR, such as AM/PM (field "a"), noon/midnight (field "b"), or flexible day periods such as "in the afternoon" (field "B"). The choice could depend on locale, length, and calendar system.
2656
+
Typically, locales will display a day period on H11, H12, and Clock12, but the day period could be any of those allowed by CLDR, such as AM/PM (field "a"), noon/midnight (field "b"), or flexible day periods such as "in the afternoon" (field "B"). The choice could depend on locale, length, and calendar system.
2655
2657
2656
2658
Note: An option could be added in the future to give the developer more control over how day periods are displayed or to disable day periods when there is sufficient context.
2657
2659
@@ -2715,23 +2717,23 @@ The following table contains the basic mapping from a semantic field to a standa
2715
2717
- Standalone: whether the specified field is the only field in the semantic skeleton. "N/A" means to use the same standard field for both standalone and non-standalone.
2716
2718
- Option: for Time, this is the [hour cycle](#Semantic_Skeleton_Hour_Cycle), and for Zone, this is the [time zone style](#Semantic_Skeleton_Time_Zone_Style).
2717
2719
2718
-
| Semantic Field | Standalone? | Option | Long | Medium | Short |
\* Lengths for Year, Month, and Day are taken from the [datetimeSkeleton](#dateFormats) in the Long, Medium, and Short variants. The era field, if present, should be included with the Year. For example, in en-US, CLDR 46, the datetimeSkeletons are:
Copy file name to clipboardExpand all lines: docs/ldml/tr35.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1094,8 +1094,8 @@ The BCP 47 form for keys and types is the canonical form, and recommended. Other
1094
1094
The valid values are those <i>name</i> attribute values in the <i>type</i> elements of
1095
1095
key name="hc" in bcp47/<a href="https://github.com/unicode-org/cldr/blob/main/common/bcp47/calendar.xml" target="_blank">calendar.xml</a></b>.
1096
1096
</td></tr>
1097
-
<tr><tdrowspan="4"><code>hc</code></td>
1098
-
<td rowspan="4">Hour cycle</td>
1097
+
<tr><tdrowspan="6"><code>hc</code></td>
1098
+
<td rowspan="6">Hour cycle</td>
1099
1099
<td><code>h12</code></td>
1100
1100
<td>Hour system using 1–12; corresponds to 'h' in patterns</td></tr>
1101
1101
<tr><td><code>h23</code></td>
@@ -1104,6 +1104,10 @@ The BCP 47 form for keys and types is the canonical form, and recommended. Other
1104
1104
<td>Hour system using 0–11; corresponds to 'K' in patterns</td></tr>
1105
1105
<tr><td><code>h24</code></td>
1106
1106
<td>Hour system using 1–24; corresponds to 'k' in pattern</td></tr>
1107
+
<tr><td><code>c12</code></td>
1108
+
<td><b>Technical Preview:</b> Locale-preferred 12-hour cycle; resolves to either <tt>h11</tt> or <tt>h12</tt>. First, select the supplemental time data <tt>hours</tt> element according to the <a href="#RegionOverride">Region Override</a>; if that keyword is not present, use the <a href="#unicode_region_subtag">Unicode Region Subtag</a>; if neither is present, or if the region does not have an entry in supplemental time data, use the region 001. Then, iterate through the <tt>allowed</tt> list of hour cycle symbols in preference order. If there is an entry with symbol <tt>K</tt> before an entry with symbol <tt>h</tt>, use <tt>h11</tt>; otherwise, use <tt>h12</tt>.</td></tr>
1109
+
<tr><td><code>c24</code></td>
1110
+
<td><b>Technical Preview:</b> Locale-preferred 24-hour cycle; resolves to either <tt>h23</tt> or <tt>h24</tt>. First, select the supplemental time data <tt>hours</tt> element as above. Then, iterate through the <tt>allowed</tt> list of hour cycle symbols in preference order. If there is an entry with symbol <tt>k</tt> before an entry with symbol <tt>H</tt>, use <tt>h24</tt>; otherwise, use <tt>h23</tt>.</td></tr>
1107
1111
1108
1112
<tr><tdcolspan="4"><b>A <aname="UnicodeLineBreakStyleIdentifier"id="UnicodeLineBreakStyleIdentifier"href="#UnicodeLineBreakStyleIdentifier">Unicode Line Break Style Identifier</a>
1109
1113
defines a preferred line break style corresponding to the CSS level 3 <a href="https://drafts.csswg.org/css-text/#line-break-property">line-break option</a>.
0 commit comments