Class SnowflakeTimeWithTimezone

  • All Implemented Interfaces:
    Serializable, Cloneable, Comparable<Date>

    public class SnowflakeTimeWithTimezone
    extends Time
    Time with toString() overridden to display time values in session timezone. Only relevant for timestamp objects fetched as times. Normal time objects do not have a timezone associated with them.
    See Also:
    Serialized Form
    • Constructor Detail

      • SnowflakeTimeWithTimezone

        public SnowflakeTimeWithTimezone​(long time,
                                         int nanos,
                                         boolean useSessionTimeZone)
      • SnowflakeTimeWithTimezone

        public SnowflakeTimeWithTimezone​(Timestamp ts,
                                         TimeZone sessionTimeZone,
                                         boolean useSessionTimeZone)
    • Method Detail

      • getNano

        public int getNano()
      • toString

        public String toString()
        Returns a string representation in session's timezone so as to display "wallclock time"
        Overrides:
        toString in class Time
        Returns:
        a string representation of the object