Timezone Toolkit

Parse, Format, and Epochs

TZ_TO_UNIX

Converts a zoned date/time to a Unix timestamp.

Syntax

=TZ_TO_UNIX(datetime, zone, [unit])

Parameters

Namedatetime
Typetext, number, date, or range
DescriptionThe date/time interpreted in zone.
Namezone
Typetext
DescriptionIANA time zone.
Nameunit?
Typetext
DescriptionUse "s" for seconds or "ms" for milliseconds.

Returns

A Unix timestamp.

Example

=TZ_TO_UNIX("2026-06-01 09:00", "UTC")

Result: 1780304400

    xs