Nyall Dawson b6173ac2ef Add timezone_from_id, timezone_id expression functions
These functions allow creating a timezone from a IANA time zone
database ID, or extracting the IANA ID from a timezone object
respectively.
2025-07-25 01:52:43 +10:00

16 lines
495 B
Plaintext

{
"name": "timezone_id",
"type": "function",
"groups": ["Conversions", "Date and Time"],
"description": "Returns the ID string for a timezone object, using IDs from the IANA timezone database.",
"arguments": [{
"arg": "timezone",
"description": "a valid timezone object"
}],
"examples": [{
"expression": "timezone_id(timezone_from_id('Australia/Brisbane'))",
"returns": "'Australia/Brisbane'"
}],
"tags": ["time", "zone", "date", "datetime", "offset", "utc"]
}