Dates, durations and time zones
Do date math in Zlv: today, tomorrow and now, add days or weeks, count days between two dates, convert durations and translate times between time zones.
Zlv treats durations as units and dates as values you can add to. Duration conversions work everywhere; calendar dates and time zones need the desktop engine.
Durations
Convert between seconds, minutes, hours, days and weeks with in.
Evaluating…
Recognised duration units include ms, s (sec, seconds), min (minutes), h (hr, hours), d (days), w (wk, weeks), mo (months) and y (yr, years). In the desktop app you can add durations together, such as 2 hours + 30 min.
Today, tomorrow and now
Results appear next to each line in Zlv Desktop. Download it free.
These words update every time the sheet is calculated, so a sheet that uses today always reflects the current date.
Adding time to a date
Write dates as YYYY-MM-DD. Add or subtract days, weeks or months.
Results appear next to each line in Zlv Desktop. Download it free.
Time between dates
Subtract one date from another, or ask for the span with between.
Results appear next to each line in Zlv Desktop. Download it free.
Time zones
Convert a 24-hour clock time from one zone to another with in. You can also convert now.
Results appear next to each line in Zlv Desktop. Download it free.
Supported names include zone abbreviations such as UTC, GMT, EST, EDT, CST, PST, BST, CET, CEST, EET, MSK, IST, JST, KST, AEST and NZST, and cities such as London, Paris, Berlin, Madrid, Tokyo, Seoul, Sydney, Singapore, Dubai, Mumbai, Beijing, Toronto, Chicago, Denver and Seattle. Multi-word cities work with or without the space: New York or newyork (or ny), Los Angeles (or la), San Francisco (or sf), Hong Kong. Offsets are standard time: daylight saving time is not applied.
Unix timestamps
Turn a Unix timestamp (seconds since 1970) into a date with to date:
Results appear next to each line in Zlv Desktop. Download it free.
Related pages
- Unit conversions
- Interactive controls, including
timerandstopwatchin Random, dice and coins.