Convert Time And Timezones
Supported Input
Section titled “Supported Input”leo time accepts Unix seconds, Unix milliseconds, and common date-time strings. With no value, it uses the current time.
leo timeleo time 1783512043leo time 1783512043000leo time "(2026-07-08 20:00:43)"A numeric value with at least 13 digits is parsed as milliseconds; shorter values are seconds. Dates support - or / separators, optional seconds, RFC 3339, and forms with an explicit offset.
Input And Output Timezones
Section titled “Input And Output Timezones”A date string without an explicit timezone is interpreted as UTC+8. --to controls the primary output timezone and accepts a UTC offset or IANA name:
leo time 1783512043 --to +9leo time "2026-07-08 20:00:43" --to Asia/TokyoThe default is +8. Entries in time.zones add common-timezone rows; a zone equal to the primary output is not printed twice.