Class TimeZone

java.lang.Object
io.trino.operator.scalar.timestamptz.TimeZone

public final class TimeZone extends Object
  • Method Details

    • extractTimeZoneFromTimestamp

      public static io.airlift.slice.Slice extractTimeZoneFromTimestamp(long timestampWithTimeZone)
      Extracts the time zone from a `timestamp(p) with time zone` as a VARCHAR.

      This function takes a packed long value representing the timestamp with time zone and extracts the associated time zone.

      Parameters:
      timestampWithTimeZone - the packed long representing a `timestamp(p) with time zone`
      Returns:
      the time zone ID as a VARCHAR
    • extractTimeZoneFromTimestamp

      public static io.airlift.slice.Slice extractTimeZoneFromTimestamp(LongTimestampWithTimeZone timestampWithTimeZone)
      Extracts the time zone from a `timestamp(p) with time zone` with a LongTimestampWithTimeZone format as a VARCHAR.

      This function takes a LongTimestampWithTimeZone object and extracts the associated time zone.

      Parameters:
      timestampWithTimeZone - the LongTimestampWithTimeZone object
      Returns:
      the time zone ID as a VARCHAR