Package io.trino.spi.type
Class DateTimeEncoding
java.lang.Object
io.trino.spi.type.DateTimeEncoding
-
Method Summary
Modifier and TypeMethodDescriptionstatic longpackDateTimeWithZone(long millisUtc, int offsetMinutes) static longpackDateTimeWithZone(long millisUtc, short timeZoneKey) static longpackDateTimeWithZone(long millisUtc, TimeZoneKey timeZoneKey) static longpackDateTimeWithZone(long millisUtc, String zoneId) static longpackTimeWithTimeZone(long nanos, int offsetMinutes) static longunpackMillisUtc(long dateTimeWithTimeZone) static intunpackOffsetMinutes(long packedTimeWithTimeZone) static longunpackTimeNanos(long packedTimeWithTimeZone) static TimeZoneKeyunpackZoneKey(long dateTimeWithTimeZone) static longupdateMillisUtc(long newMillsUtc, long dateTimeWithTimeZone)
-
Method Details
-
packDateTimeWithZone
- Throws:
TimeZoneNotSupportedException- whenzoneIddoes not identity a time zone
-
packDateTimeWithZone
public static long packDateTimeWithZone(long millisUtc, int offsetMinutes) -
packDateTimeWithZone
-
packDateTimeWithZone
public static long packDateTimeWithZone(long millisUtc, short timeZoneKey) -
unpackMillisUtc
public static long unpackMillisUtc(long dateTimeWithTimeZone) -
unpackZoneKey
-
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)
-