epochNanosToZonedDateTime
epochNanosToZonedDateTime
converts an offset from the Epoch to a ZonedDateTime.
Syntax
epochNanosToZonedDateTime(nanos, timeZone)
Parameters
Parameter | Type | Description |
---|---|---|
nanos | long | The nanoseconds from the Epoch. |
timeZone | ZoneId | The time zone. |
Returns
A ZonedDateTime.
Examples
datetime = epochNanosToZonedDateTime(1641013200000, timeZone("ET"))
println datetime
- Log