Class DateUtility

java.lang.Object
org.apache.drill.exec.expr.fn.impl.DateUtility

public class DateUtility extends Object
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 Details

  • Constructor Details

    • DateUtility

      public DateUtility()
  • Method Details

    • getIndex

      public static int getIndex(String timezone)
    • getTimeZone

      public static String getTimeZone(int index)
    • parseLocalDate

      public static LocalDate parseLocalDate(String value)
      Parse given string into a LocalDate
    • parseLocalTime

      public static LocalTime parseLocalTime(String value)
      Parse given string into a LocalTime
    • parseLocalDateTime

      public static LocalDateTime parseLocalDateTime(String value)
      Parse the given string into a LocalDateTime.
    • getDateTimeFormatter

      public static DateTimeFormatter getDateTimeFormatter()
    • parseBest

      public static LocalDateTime parseBest(String value)
      Best effort parsing of the given value
    • getTimeFormatter

      public static DateTimeFormatter getTimeFormatter()
    • buildFormatter

      public static DateTimeFormatter buildFormatter(String pattern)