World Clock
Live times across the globe, rendered with DateTz.now(tz).toString(). Updated every second.
Your local time
—
Unix timestamp (ms)
—
Timestamp → DateTz
Build a DateTz from a Unix timestamp and inspect every getter.
Parse string → DateTz
Invokes DateTz.parse(dateString, pattern, tz).
Format DateTz → string
Calls date.toString(pattern, locale). Experiment with the full token set.
Format tokens reference
| Token | Meaning |
|---|---|
YYYY / yyyy | Full year |
YY / yy | 2-digit year |
MM | Month 01–12 |
LM | Long month name (locale) |
SM | Short month name (locale) |
DD | Day of month 01–31 |
HH | Hour 00–23 |
hh | Hour 01–12 (needs aa/AA) |
mm | Minute |
ss | Second |
aa / AA | am/pm — AM/PM |
WL | Long weekday name |
WS | Short weekday name |
tz | Timezone identifier |
Cross-timezone view (readIn)
One absolute instant, experienced by readers in different timezones.
Manipulate
Chain add / set operations and watch the timestamp evolve.