CLDR / ICU pattern to C / POSIX strftime.
18 of 26 fields map cleanly; 8 have no C / POSIX strftime token.
C / POSIX strftime
%y%y-%m-%d %H:%M
Reference · Mon, Jan 2 2006, 3:04:05 PM MST
0606-01-02 15:04
0606-01-02 15:04
Right now, your zone
…
Both sides render the same instant — the translation is faithful.
| CLDR / ICU pattern | C / POSIX strftime | Field | Example |
|---|---|---|---|
| y | %Y | Four-digit year | 2006 |
| yy | %y | Two-digit year | 06 |
| M | no token | Month number | 1 |
| MM | %m | Month number, padded | 01 |
| MMM | %b | Month name, abbreviated | Jan |
| MMMM | %B | Month name, full | January |
| d | no token | Day of month | 2 |
| dd | %d | Day of month, padded | 02 |
| E | %a | Weekday, abbreviated | Mon |
| EEEE | %A | Weekday, full | Monday |
| D | %j | Day of year | 2 |
| w | %V | Week of year | 1 |
| Y | %G | ISO week-based year | 2006 |
| H | no token | Hour, 24-hour clock | 15 |
| HH | %H | Hour, 24-hour clock, padded | 15 |
| h | no token | Hour, 12-hour clock | 3 |
| hh | %I | Hour, 12-hour clock, padded | 03 |
| a | %p | AM/PM marker | PM |
| mm | %M | Minute, padded | 04 |
| ss | %S | Second, padded | 05 |
| S | no token | Fractional seconds | 000 |
| xx | %z | UTC offset, basic | -0700 |
| xxx | no token | UTC offset, extended | -07:00 |
| z | %Z | Time-zone name, short | MST |
| G | no token | Era | AD |
| Q | no token | Quarter | 1 |