CLDR H
Hour, 24-hour clock.
15
at the reference instant, Mon, Jan 2 2006, 3:04:05 PM MST
The hour 0–23 as a bare number, no padding (15 for 3 PM). CLDR H; also CLDR k counts 1–24 — a different, rarer field.
| Language | Token | Caveat |
|---|---|---|
| C# custom format | H | Alone it must be written "%H" to avoid the standard-format lookup. |
| CLDR / ICU pattern | H | 0-23; k is the 1-24 variant. |
| Java DateTimeFormatter | H | 0-23. k counts 1-24 and K counts 0-11 — rarely what you want. |
| JavaScript Intl.DateTimeFormat | hour: "numeric", hourCycle: "h23" | hourCycle: "h24" counts 1–24 instead of 0–23; hour12: false also forces h23. |
| Moment.js format | H | k counts 1–24 instead of 0–23. |
| PHP date() | G |
Definition anchored to Unicode UTS #35 — Date Field Symbol Table.