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