Instant
instead as much as possible.@Deprecated public class Timestamp extends Object implements Comparable<Timestamp>
Embulk needed this till v0.8 because v0.8 expected Java 7, which does not have Instant
.
Embulk v0.9 requires Java 8, and it expects Instant
. Timestamp
remains here for compatibility.
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 boolean equals(Object otherObject)
public int compareTo(Timestamp other)
compareTo
in interface Comparable<Timestamp>