Mathieu Pellerin 07cbfdd2e3 [FEATURE] epoch() expression function (#4151)
This commit adds an epoch() function to the expression engine which
returns the interval in milliseconds between the unix epoch and a
given date value.
2017-02-22 17:31:44 +07:00

8 lines
316 B
Plaintext

{
"name": "epoch",
"type": "function",
"description": "Return the interval in milliseconds between the unix epoch and a given date value.",
"arguments": [ {"arg":"date","description":"a date or datetime value"} ],
"examples": [ { "expression":"epoch(to_date('2017-01-01'))", "returns":"1483203600000"} ]
}