now
Syntax
now([nanoSecond=false])
Arguments
nanoSecond a Boolean value indicating whether to display the result with nanosecond precision.
Details
Return the current timestamp.
Note: Nanosecond precision may not be supported on certain
versions of Windows. Therefore, even if
nanoSecond=true
is
specified, it may still return timestamps with millisecond precision.Examples
now();
// output: 2016.05.12T19:32:49.613
now(true);
// output: 2016.05.12T19:32:49.614243000