CLDR hh
Hour, 12-hour clock, padded.
03
at the reference instant, Mon, Jan 2 2006, 3:04:05 PM MST
The hour 01–12, zero-padded — strftime %I. Pair with the day-period token or the output is ambiguous twice a day.
| Language | Token | Caveat |
|---|---|---|
| C / POSIX strftime | %I | |
| C# custom format | hh | |
| CLDR / ICU pattern | hh | |
| Go time layout | 03 | |
| Java DateTimeFormatter | hh | |
| JavaScript Intl.DateTimeFormat | hour: "2-digit", hour12: true | Some locales override the numeric/2-digit choice for hours; check resolvedOptions(). |
| Moment.js format | hh | |
| PHP date() | h | |
| Python strftime | %I | |
| Ruby strftime | %I | %l is the blank-padded form. |
| Rust chrono | %I | %l is the space-padded form (same as %_I). |
Definition anchored to Unicode UTS #35 — Date Field Symbol Table.