Date.nanos
Date.nanos
Function
Reads the nanosecond portion of the current Date within the current second.
Syntax
date_value.nanos()
Parameters
No parameters.
Return value
| Type | Description |
|---|---|
| Int | Returns the nanosecond portion from 0 to 999999999. |
Code Example
result = date().from_nanos(1234567890).nanos() // Output: 234567890
Notes
- To read full nanosecond Unix timestamps use timestamp_nanos().