Class SnowflakeDateWithTimezone

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

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

      • SnowflakeDateWithTimezone

        public SnowflakeDateWithTimezone​(long date,
                                         TimeZone timezone,
                                         boolean useSessionTimezone)
    • Method Detail

      • toString

        public String toString()
        Returns a string representation in UTC so as to display "wallclock time"
        Overrides:
        toString in class Date
        Returns:
        a string representation of the object