public class RedshiftTime extends Time
| Constructor and Description |
|---|
RedshiftTime(long time)
Constructs a
RedshiftTime without a time zone. |
RedshiftTime(long time,
Calendar calendar)
Constructs a
RedshiftTime with the given calendar object. |
RedshiftTime(long time,
Calendar calendar,
int nanos)
Store time with nanos.
|
RedshiftTime(long time,
int nanos) |
RedshiftTime(Time time,
int nanos) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone() |
boolean |
equals(Object obj) |
Calendar |
getCalendar()
Returns the calendar object for this time.
|
int |
getNanos()
Returns nano seconds of time.
|
int |
hashCode() |
void |
setCalendar(Calendar calendar)
Sets the calendar object for this time.
|
getDate, getDay, getMonth, getYear, setDate, setMonth, setTime, setYear, toInstant, toLocalTime, toString, valueOf, valueOfafter, before, compareTo, from, getHours, getMinutes, getSeconds, getTime, getTimezoneOffset, parse, setHours, setMinutes, setSeconds, toGMTString, toLocaleString, UTCpublic RedshiftTime(long time)
RedshiftTime without a time zone.time - milliseconds since January 1, 1970, 00:00:00 GMT; a negative number is milliseconds
before January 1, 1970, 00:00:00 GMT.Time(long)public RedshiftTime(long time,
int nanos)
public RedshiftTime(long time,
Calendar calendar)
RedshiftTime with the given calendar object. The calendar object is
optional. If absent, the driver will treat the time as time without time zone.
When present, the driver will treat the time as a time with time zone using the
TimeZone in the calendar object. Furthermore, this calendar will be used instead
of the calendar object passed to PreparedStatement.setTime(int, Time, Calendar).time - milliseconds since January 1, 1970, 00:00:00 GMT; a negative number is milliseconds
before January 1, 1970, 00:00:00 GMT.calendar - the calendar object containing the time zone or null.Time(long)public RedshiftTime(long time,
Calendar calendar,
int nanos)
time - milliseconds since January 1, 1970, 00:00:00 GMT; a negative number is milliseconds
before January 1, 1970, 00:00:00 GMT.calendar - the calendar object containing the time zone or null.nanos - nanospublic RedshiftTime(Time time, int nanos)
public void setCalendar(Calendar calendar)
calendar - the calendar object or null.public Calendar getCalendar()
null.public int getNanos()
Copyright © 2023 Amazon.com Inc.. All rights reserved.