epochNanos
Returns nanoseconds from the Epoch for a date-time value.
Syntax
epochNanos(instant)
epochNanos(dateTime)
Parameters
Parameter | Type | Description |
---|---|---|
instant | Instant | Instant to compute the Epoch offset for. |
dateTime | ZonedDateTime | ZonedDateTime to compute the Epoch offset for. |
Returns
Nanoseconds from the Epoch.
Examples
datetime = parseInstant("2022-01-01T05:04:02 ET")
println epochNanos(datetime)
- Log