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
510 B
Plaintext

{
"name": "make_date",
"type": "function",
"description": "Creates a date value from year, month and day numbers.",
"arguments": [
{"arg":"year","description":"Year number. Years 1 to 99 are interpreted as is. Year 0 is invalid."},
{"arg":"month","description":"Month number, where 1=January"},
{"arg":"day", "description":"Day number, beginning with 1 for the first day in the month"}
],
"examples": [
{ "expression":"make_date(2020,5,4)", "returns":"date value 2020-05-04"}
]
}