Skip to main content

$millis

$millis() -> number
Browse categories

Source: JSONata

Documentation​

Returns the number of milliseconds since the Unix Epoch (1 January, 1970 UTC) as a number. All invocations of $millis() within an evaluation of an expression will all return the same value.

Examples​

Basic usage​

  • $millis() => 1502700297574

Get the type of $millis()​

Input

null

Expression

$type($millis())

Result

"number"

Show that repeated calls are stable within one evaluation​

Input

null

Expression

$millis() = $millis()

Result

true