Nyall Dawson c2715d7b44 [FEATURE][expressions] Add make_date, make_time and make_datetime functions
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.
2020-05-07 14:46:54 +10:00

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"}
]
}