CONVERT_TIMEZONE
Convert timestamp to the specified timezone.
Syntax
CONVERT_TIMEZONE(sourceTimezone string, destinationTimezone string, timestamp date, timestamp, or string in ISO 8601 format) → timestamp
sourceTimezone: The time zone of the timestamp. If you omit this parameter, Spice assumes that the source time zone is UTC.
destinationTimezone: The time zone to convert the timestamp to.
timestamp: The timestamp to convert.
Examples
CONVERT_TIMEZONE example
CONVERT_TIMEZONE example
CONVERT_TIMEZONE example
CONVERT_TIMEZONE example
CONVERT_TIMEZONE example
CONVERT_TIMEZONE example
CONVERT_TIMEZONE example
Usage Notes
The
sourceTimezone
anddestinationTimezone
parameters may betimezone_name
fromsys.timezone_names
,timezone_abbrev
fromsys.timezone_abbrevs
, or a UTC time offset such as “+02:00”.If you specify a time zone name instead of time offset, you may get a different answer depending on when you call this function due to daylight saving time.
Last updated