Skip to main content
Version: Java (Groovy)

epochMicrosToZonedDateTime

epochMicrosToZonedDateTime converts an offset from the Epoch to a ZonedDateTime.

Syntax

epochMicrosToZonedDateTime(micros, timeZone)

Parameters

ParameterTypeDescription
microslong

The microseconds from the Epoch.

timeZoneZoneId

The time zone.

Returns

A ZonedDateTime.

Examples

datetime = epochMicrosToZonedDateTime(1641013200000, timeZone("ET"))
println datetime