Instant
instead as much as possible.@Deprecated public class Timestamp extends Object implements Comparable<Timestamp>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Timestamp other)
Deprecated.
|
boolean |
equals(Object otherObject)
Deprecated.
|
long |
getEpochSecond()
Deprecated.
|
Instant |
getInstant()
Deprecated.
|
int |
getNano()
Deprecated.
|
int |
hashCode()
Deprecated.
|
static Timestamp |
ofEpochMilli(long epochMilli)
Deprecated.
|
static Timestamp |
ofEpochSecond(long epochSecond)
Deprecated.
|
static Timestamp |
ofEpochSecond(long epochSecond,
long nanoAdjustment)
Deprecated.
|
static Timestamp |
ofInstant(Instant instant)
Deprecated.
|
static Timestamp |
ofString(String string)
Deprecated.
|
long |
toEpochMilli()
Deprecated.
|
String |
toString()
Deprecated.
|
public static Timestamp ofEpochSecond(long epochSecond)
public static Timestamp ofEpochSecond(long epochSecond, long nanoAdjustment)
public static Timestamp ofEpochMilli(long epochMilli)
public Instant getInstant()
public long getEpochSecond()
public int getNano()
public long toEpochMilli()
public int compareTo(Timestamp other)
compareTo
in interface Comparable<Timestamp>