Class SqlTimestampWithTimeZone

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

public final class SqlTimestampWithTimeZone extends Object
  • Method Details

    • fromInstant

      public static SqlTimestampWithTimeZone fromInstant(int precision, Instant instant, ZoneId zoneId)
    • newInstance

      public static SqlTimestampWithTimeZone newInstance(int precision, long epochMillis, int picosOfMilli, TimeZoneKey timeZoneKey)
    • getPrecision

      public int getPrecision()
    • getEpochMillis

      public long getEpochMillis()
    • getPicosOfMilli

      public int getPicosOfMilli()
    • getMillisUtc

      public long getMillisUtc()
    • getTimeZoneKey

      public TimeZoneKey getTimeZoneKey()
    • roundTo

      public SqlTimestampWithTimeZone roundTo(int precision)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toZonedDateTime

      public ZonedDateTime toZonedDateTime()
      Returns:
      timestamp with time zone rounded to nanosecond precision