| Modifier and Type | Method and Description |
|---|---|
static Double |
convertDate(Date date)
Convert a
Date to a serial number. |
static Double |
convertZonedDateTime(ZonedDateTime zdt)
Convert a
ZonedDateTime to a serial number. |
public static Double convertDate(Date date)
Date to a serial number. Note Excel timestamps do not
carry any timezone information; this method uses the system timezone to
convert the timestamp to a serial number. If you need a specific
timezone, prefer using
convertZonedDateTime(java.time.ZonedDateTime).date - Date value.public static Double convertZonedDateTime(ZonedDateTime zdt)
ZonedDateTime to a serial number.zdt - Date and timezone values.Copyright © 2016. All rights reserved.