Skip to main content
Version: Java (Groovy)

epochSecondsToInstant

epochSecondsToInstant converts a value of seconds from Epoch to a date-time Instant.

Syntax

epochSecondsToInstant(seconds)

Parameters

ParameterTypeDescription
secondslong

The seconds since Epoch.

Returns

A date-time representing seconds since Epoch.

Examples

datetime = epochSecondsToInstant(1641013200000)
println datetime