Package com.yahoo.gsheetjdbc.utils
Class DateUtils
- java.lang.Object
-
- com.yahoo.gsheetjdbc.utils.DateUtils
-
public class DateUtils extends Object
Utility functions for Data parsing.
-
-
Field Summary
Fields Modifier and Type Field Description static LocalDateTimeGOOGLE_EPOCH_REFERENCEGoogle serial number format epoch starts on 12/30/1899.
-
Constructor Summary
Constructors Constructor Description DateUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static LocalDateTimeconvert(Double serialDate)Converts a Google serial data into a LocalDateTime.static LocalDateTimeconvert(Object serialDate)Converts a Google serial data into a LocalDateTime.
-
-
-
Field Detail
-
GOOGLE_EPOCH_REFERENCE
public static final LocalDateTime GOOGLE_EPOCH_REFERENCE
Google serial number format epoch starts on 12/30/1899.
-
-
Method Detail
-
convert
public static LocalDateTime convert(Double serialDate)
Converts a Google serial data into a LocalDateTime.- Parameters:
serialDate- Serial date format (as a double).- Returns:
- The equivalent LocalDateTime.
-
convert
public static LocalDateTime convert(Object serialDate)
Converts a Google serial data into a LocalDateTime.- Parameters:
serialDate- Serial date format (as an object).- Returns:
- The equivalent LocalDateTime.
-
-