Class DateUtility
java.lang.Object
org.apache.drill.exec.expr.fn.impl.DateUtility
Utility class for Date, DateTime, TimeStamp, Interval data types.
WARNING: This class is excluded from the JDBC driver. If vectors refer to this code, they will fail when called from JDBC.
-
Field Summary
Modifier and TypeFieldDescriptionstatic DateTimeFormatter
static final DateTimeFormatter
static final DateTimeFormatter
static final DateTimeFormatter
static final DateTimeFormatter
static final DateTimeFormatter
static final DateTimeFormatter
static final DateTimeFormatter
static DateTimeFormatter
static String[]
static com.carrotsearch.hppc.ObjectIntHashMap<String>
static final DateTimeFormatter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DateTimeFormatter
buildFormatter
(String pattern) static DateTimeFormatter
static int
static DateTimeFormatter
static String
getTimeZone
(int index) static LocalDateTime
Best effort parsing of the given valuestatic LocalDate
parseLocalDate
(String value) Parse given string into a LocalDatestatic LocalDateTime
parseLocalDateTime
(String value) Parse the given string into a LocalDateTime.static LocalTime
parseLocalTime
(String value) Parse given string into a LocalTime
-
Field Details
-
timezoneMap
-
timezoneList
-
formatDate
-
formatTimeStamp
-
formatTimeStampTZ
-
formatTime
-
isoFormatDate
-
isoFormatTimeStamp
-
isoFormatTime
-
UTC_FORMATTER
-
dateTimeTZFormat
-
timeFormat
-
-
Constructor Details
-
DateUtility
public DateUtility()
-
-
Method Details
-
getIndex
-
getTimeZone
-
parseLocalDate
Parse given string into a LocalDate -
parseLocalTime
Parse given string into a LocalTime -
parseLocalDateTime
Parse the given string into a LocalDateTime. -
getDateTimeFormatter
-
parseBest
Best effort parsing of the given value -
getTimeFormatter
-
buildFormatter
-