mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
These functions allow creating a timezone from a IANA time zone database ID, or extracting the IANA ID from a timezone object respectively.
16 lines
560 B
Plaintext
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"]
|
|
}
|