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