Date.timestamp_nanos
Date.timestamp_nanos
Function
Reads the nanosecond Unix timestamp of the current Date .
Syntax
date_value.timestamp_nanos()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| Int | Returns a nanosecond Unix timestamp; returns 0 when outside the representable range. |
Code Example
result = date().from_timestamp(1).timestamp_nanos() // Output: 1000000000
Notes
- To read the nanosecond part of the current second, use nanos().