now
The now
function returns the current UTC clock time as a datetime value (Unix time in seconds), optionally
offset by a given timespan.
You can use now
multiple times in a statement and the clock time being referenced will be the same for all instances.
To convert
datetime
(Unix time) into astring
, or vice versa, use thestrftime
andstrptime
functions.
Syntax
now( [ Offset ] )
Arguments
- Offset: A timespan, added to the current UTC clock time. Default: 0.
Returns
The current UTC clock time as a datetime
.
Examples
now()
now(-2d)
| extend Elapsed=now() - Timestamp