excelToZonedDateTime
excelToZonedDateTime
converts an Excel date-time to a ZonedDateTime.
Syntax
excelToZonedDateTime(excel, timeZone)
Parameters
Parameter | Type | Description |
---|---|---|
excel | double | Excel time, represented as a double. |
timeZone | ZoneId | The time zone. |
Returns
A date-time as a ZonedDateTime.
Examples
datetime = excelToZonedDateTime(1641013200000, timeZone("ET"))
println datetime
- Log