| Modifier and Type | Field and Description |
|---|---|
| private @Nullable Calendar | calendar
The optional calendar for this timestamp. |
| private static final long | serialVersionUID
The serial version UID.
|
| Access | Constructor and Description |
|---|---|
| public | PGTimestamp(long
milliseconds since January 1, 1970, 00:00:00 GMT. A negative number is the number
of milliseconds before January 1, 1970, 00:00:00 GMT. time)Constructs a |
| public | PGTimestamp(long
milliseconds since January 1, 1970, 00:00:00 GMT. A negative number is the number
of milliseconds before January 1, 1970, 00:00:00 GMT. time, @Nullable Calendar the calendar object containing the time zone or calendar)null.Constructs a |
| Modifier and Type | Method and Description |
|---|---|
| public Object | |
| public boolean | equals(@Nullable Object
the o)Object value to compare withOverrides java. Tests to see if this |
| public @Nullable Calendar | |
| public int | |
| public void | setCalendar(@Nullable Calendar
the calendar object or calendar)null.Sets the calendar object for this timestamp. |
| calendar | back to summary |
|---|---|
| private @Nullable Calendar calendar The optional calendar for this timestamp. | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. The serial version UID. | |
| PGTimestamp | back to summary |
|---|---|
| public PGTimestamp(long time) Constructs a
| |
| PGTimestamp | back to summary |
|---|---|
| public PGTimestamp(long time, @Nullable Calendar calendar) Constructs a The calendar object is optional. If absent, the driver will treat the timestamp as
| |
| clone | back to summary |
|---|---|
| public Object clone() Overrides java. Doc from java. Return a copy of this object.
| |
| equals | back to summary |
|---|---|
| public boolean equals(@Nullable Object o) Overrides java. Doc from java. Tests to see if this Note This method is not symmetric with respect to the
| |
| getCalendar | back to summary |
|---|---|
| public @Nullable Calendar getCalendar() Returns the calendar object for this timestamp. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. The result is the
exclusive OR of the two halves of the primitive The hashCode method uses the underlying java.util.Date
implementation and therefore does not include nanos in its computation.
| |
| setCalendar | back to summary |
|---|---|
| public void setCalendar(@Nullable Calendar calendar) Sets the calendar object for this timestamp. | |