Skip to main content
Version: Java (Groovy)

excelToZonedDateTime

excelToZonedDateTime converts an Excel date-time to a ZonedDateTime.

Syntax

excelToZonedDateTime(excel, timeZone)

Parameters

ParameterTypeDescription
exceldouble

Excel time, represented as a double.

timeZoneZoneId

The time zone.

Returns

A date-time as a ZonedDateTime.

Examples

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