Skip to main content
Version: Java (Groovy)

excelToInstant

excelToInstant converts an Excel date-time to an Instant.

Syntax

excelToInstant(excel, timeZone)

Parameters

ParameterTypeDescription
exceldouble

Excel time, represented as a double.

timeZoneZoneId

The time zone.

Returns

An Instant date-time.

Examples

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