QGIS/resources/function_help/json/timezone_from_id
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
560 B
Plaintext

{
"name": "timezone_from_id",
"type": "function",
"groups": ["Conversions", "Date and Time"],
"description": "Creates a timezone object from a string ID (from the IANA timezone database). The ID must be one of the available system IDs or a valid UTC-with-offset ID.",
"arguments": [{
"arg": "id",
"description": "string containing the time zone ID"
}],
"examples": [{
"expression": "timezone_from_id('Australia/Brisbane')",
"returns": "AEST timezone object"
}],
"tags": ["time", "zone", "date", "datetime", "offset", "utc"]
}