public class TimestampTZ extends Object implements Comparable<TimestampTZ>
Constructor and Description |
---|
TimestampTZ() |
TimestampTZ(long seconds,
int nanos,
ZoneId timeZone) |
TimestampTZ(ZonedDateTime zonedDateTime) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(TimestampTZ o) |
boolean |
equals(Object other) |
long |
getEpochSecond() |
int |
getNanos() |
ZonedDateTime |
getZonedDateTime() |
int |
hashCode() |
void |
set(long seconds,
int nanos,
ZoneId timeZone)
Obtains an instance of Instant using seconds from the epoch of 1970-01-01T00:00:00Z and
nanosecond fraction of second.
|
void |
setZonedDateTime(ZonedDateTime zonedDateTime) |
long |
toEpochMilli() |
String |
toString() |
public TimestampTZ()
public TimestampTZ(ZonedDateTime zonedDateTime)
public TimestampTZ(long seconds, int nanos, ZoneId timeZone)
public void set(long seconds, int nanos, ZoneId timeZone)
public ZonedDateTime getZonedDateTime()
public void setZonedDateTime(ZonedDateTime zonedDateTime)
public int compareTo(TimestampTZ o)
compareTo
in interface Comparable<TimestampTZ>
public long getEpochSecond()
public long toEpochMilli()
public int getNanos()
Copyright © 2022 The Apache Software Foundation. All rights reserved.