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