Date.timestamp_nanos

Date.timestamp_nanos

Date.timestamp_nanos

Function

Reads the nanosecond Unix timestamp of the current Date .

Syntax

Parameters

No parameters.

Return value

TypeDescription
IntReturns a nanosecond Unix timestamp; returns 0 when outside the representable range.

Code Example

Notes

  • To read the nanosecond part of the current second, use nanos().