|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Date
java.sql.Time
org.postgresql.util.PGTime
public class PGTime
This class augments the Java built-in Time to allow for explicit setting of the time zone.
| Constructor Summary | |
|---|---|
PGTime(long time)
Constructs a PGTime without a time zone. |
|
PGTime(long time,
Calendar calendar)
Constructs a PGTime with the given calendar object. |
|
| Method Summary | |
|---|---|
Object |
clone()
|
boolean |
equals(Object obj)
|
Calendar |
getCalendar()
Returns the calendar object for this time. |
int |
hashCode()
|
void |
setCalendar(Calendar calendar)
Sets the calendar object for this time. |
| Methods inherited from class java.sql.Time |
|---|
getDate, getDay, getMonth, getYear, setDate, setMonth, setTime, setYear, toString, valueOf |
| Methods inherited from class java.util.Date |
|---|
after, before, compareTo, getHours, getMinutes, getSeconds, getTime, getTimezoneOffset, parse, setHours, setMinutes, setSeconds, toGMTString, toLocaleString, UTC |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PGTime(long time)
PGTime 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.Time(long)
public PGTime(long time,
Calendar calendar)
PGTime 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.Time(long)| Method Detail |
|---|
public void setCalendar(Calendar calendar)
calendar - the calendar object or null.public Calendar getCalendar()
null.public int hashCode()
hashCode in class Datepublic boolean equals(Object obj)
equals in class Datepublic Object clone()
clone in class Date
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||