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