Date.nanos

Date.nanos

Date.nanos

Function

Reads the nanosecond portion of the current Date within the current second.

Syntax

Parameters

No parameters.

Return value

TypeDescription
IntReturns the nanosecond portion from 0 to 999999999.

Code Example

Notes

  • To read full nanosecond Unix timestamps use timestamp_nanos().