CLDR xx
UTC offset, basic.
-0700
at the reference instant, Mon, Jan 2 2006, 3:04:05 PM MST
The offset from UTC without a colon (-0700) — RFC 822/ISO 8601 basic form, strftime %z, CLDR xx or ZZZ.
| Language | Token | Caveat |
|---|---|---|
| C / POSIX strftime | %z | +hhmm or -hhmm; no bytes at all if no timezone is determinable. |
| CLDR / ICU pattern | xx | A single x drops zero minutes (-08); Z through ZZZ print the same basic form. XX prints Z at UTC instead of +0000. |
| Go time layout | -0700 | |
| Java DateTimeFormatter | Z | Z through ZZZ print +0000-style; ZZZZ switches to GMT+08:00 and ZZZZZ adds a colon and prints Z at UTC. |
| Moment.js format | ZZ | |
| PHP date() | O | |
| Python strftime | %z | Empty string for naive datetimes; can include seconds/microseconds for exotic offsets. |
| Ruby strftime | %z | |
| Rust chrono | %z | %#z is parsing-only and tolerates missing minutes. |
Definition anchored to Unicode UTS #35 — Date Field Symbol Table.