Skip to main content
Version: Java (Groovy)

epochMillisToInstant

epochMillisToInstant converts a value of milliseconds from Epoch to a date-time.

Syntax

epochMillisToInstant(millis)

Parameters

ParameterTypeDescription
millislong

The milliseconds since Epoch.

Returns

A date-time representing milliseconds since Epoch.

Examples

datetime = epochMillisToInstant(1641013200000)
println datetime