mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-04 00:04:03 -04:00
21 lines
613 B
Plaintext
21 lines
613 B
Plaintext
{
|
|
"name": "get_timezone",
|
|
"type": "function",
|
|
"groups": ["Conversions", "Date and Time"],
|
|
"description": "Returns the timezone object associated with a datetime value.",
|
|
"arguments": [{
|
|
"arg": "datetime",
|
|
"description": "datetime with timezone"
|
|
}],
|
|
"examples": [
|
|
{
|
|
"expression": "timezone_id(get_timezone(to_datetime('2012-05-04 12:50:00+3')))",
|
|
"returns": "'UTC+03'"
|
|
},
|
|
{
|
|
"expression": "timezone_id(get_timezone(\"DATE_FIELD\"))",
|
|
"returns": "ID of timezone associated with the DATE_FIELD value"
|
|
}],
|
|
"tags": ["time", "zone", "date", "datetime", "offset", "utc"]
|
|
}
|