Class DateTimeUtils

java.lang.Object
org.apache.arrow.driver.jdbc.utils.DateTimeUtils

public class DateTimeUtils extends Object
Datetime utility functions.
  • Method Details

    • applyCalendarOffset

      public static long applyCalendarOffset(long milliseconds, Calendar calendar)
      Subtracts given Calendar's TimeZone offset from epoch milliseconds.
    • getTimestampValue

      public static Timestamp getTimestampValue(long millisWithCalendar)
      Converts Epoch millis to a Timestamp object.
      Parameters:
      millisWithCalendar - the Timestamp in Epoch millis
      Returns:
      a Timestamp object representing the given Epoch millis