mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
These functions allow for direct creation of date/time values. Previously this was only possible by going through the to_datetime/to_date/to_time functions, which are string based and accordingly frustrating/inefficient to use when you have numeric date/time component values.
14 lines
438 B
Plaintext
14 lines
438 B
Plaintext
{
|
|
"name": "make_time",
|
|
"type": "function",
|
|
"description": "Creates a time value from hour, minute and second numbers.",
|
|
"arguments": [
|
|
{"arg":"hour", "description":"Hour number"},
|
|
{"arg":"minute", "description":"Minutes"},
|
|
{"arg":"second", "description":"Seconds (fractional values include milliseconds)"}
|
|
],
|
|
"examples": [
|
|
{ "expression":"make_time(13,45,30.5)", "returns":"time value 13:45:30.500"}
|
|
]
|
|
}
|