Package net.snowflake.client.jdbc
Class SnowflakeDateWithTimezone
- java.lang.Object
-
- java.util.Date
-
- java.sql.Date
-
- net.snowflake.client.jdbc.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 Summary
Constructors Constructor Description SnowflakeDateWithTimezone(long date, TimeZone timezone, boolean useSessionTimezone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
Returns a string representation in UTC so as to display "wallclock time"-
Methods inherited from class java.sql.Date
getHours, getMinutes, getSeconds, setHours, setMinutes, setSeconds, setTime, toInstant, toLocalDate, valueOf, valueOf
-
-
-
-
Constructor Detail
-
SnowflakeDateWithTimezone
public SnowflakeDateWithTimezone(long date, TimeZone timezone, boolean useSessionTimezone)
-
-