Class DateTimeEncoding

java.lang.Object
io.trino.spi.type.DateTimeEncoding

public final class DateTimeEncoding extends Object
  • Method Details

    • packDateTimeWithZone

      public static long packDateTimeWithZone(long millisUtc, String zoneId)
      Throws:
      TimeZoneNotSupportedException - when zoneId does not identity a time zone
    • packDateTimeWithZone

      public static long packDateTimeWithZone(long millisUtc, int offsetMinutes)
    • packDateTimeWithZone

      public static long packDateTimeWithZone(long millisUtc, TimeZoneKey timeZoneKey)
    • packDateTimeWithZone

      public static long packDateTimeWithZone(long millisUtc, short timeZoneKey)
    • unpackMillisUtc

      public static long unpackMillisUtc(long dateTimeWithTimeZone)
    • unpackZoneKey

      public static TimeZoneKey unpackZoneKey(long dateTimeWithTimeZone)
    • updateMillisUtc

      public static long updateMillisUtc(long newMillsUtc, long dateTimeWithTimeZone)
    • packTimeWithTimeZone

      public static long packTimeWithTimeZone(long nanos, int offsetMinutes)
    • unpackTimeNanos

      public static long unpackTimeNanos(long packedTimeWithTimeZone)
    • unpackOffsetMinutes

      public static int unpackOffsetMinutes(long packedTimeWithTimeZone)