time.zones
the same moment in other time zones, and the time now around the world
The same moment as clocks read it in other time zones.
To show a date in another zone, write d to zone, where zone is UTC, local (your computer’s zone), a city or country name, or a name from the standard time zone list like “Asia/Tokyo” or “America/New_York”.
good to know
Section titled “good to know”Zones follow daylight saving time on their own.
Tags: time
utcthe same moment in UTC, the zone with no offset that times are often stored inlocalthe same moment in your computer’s time zone, the same asd to localclockthe time right now in each zone or city
syntax
Section titled “syntax”1# to UTC, or to local for your own zone2date("2026-12-25 18:30") to UTC2026-12-26 00:30:00 +00:003# to a standard zone name4date("2026-12-25 18:30") to "Asia/Tokyo"2026-12-26 09:30:00 +09:005# to a city or country6date("2026-12-25 18:30") to "Sao Paulo"2026-12-25 21:30:00 -03:007# a zone in a variable needs parentheses8z = "Asia/Tokyo"; date("2026-12-25 18:30") to (z)2026-12-26 09:30:00 +09:00Example outputCtrl+Enter to run
Functions
Section titled “Functions”utc(d: date) -> date
the same moment in UTC, the zone with no offset that times are often stored in
Same as d to UTC
1date(0) to UTC1970-01-01 00:00:00 +00:002date(0).utc.year1970Example outputCtrl+Enter to run
local(d: date) -> date
the same moment in your computer’s time zone, the same as d to local
1(date(0) to UTC).local.year1969Example outputCtrl+Enter to run
See also utc
clock(places: list) -> map / clock(place: str) -> date
the time right now in each zone or city
1clock(["Tokyo", "London"]){Tokyo: 2026-11-05 03:12:40 +09:00, London: 2026-11-04 18:12:40 +00:00}2clock("Asia/Kolkata").hour >= 0trueExample outputCtrl+Enter to run
More examples
Section titled “More examples”1# Christmas evening here, in Tokyo time2date("2026-12-25 18:30") to "Asia/Tokyo"2026-12-26 09:30:00 +09:003# 5pm here is when in London?45pm to "London"2026-11-04 23:00:00 +00:005# world clock6clock(["Tokyo", "London", "New York"]){Tokyo: 2026-11-05 03:12:41 +09:00, London: 2026-11-04 18:12:41 +00:00, New York: 2026-11-04 13:12:41 -05:00}Example outputCtrl+Enter to run
Example results generated on 2026-11-04. Ones using now, today or randomness will differ when you run them.