| Constructor | Description |
|---|---|
LegacyTimestamp() |
|
LegacyTimestamp(long milliseconds) |
| Modifier and Type | Method | Description |
|---|---|---|
long |
calcDifferenceInNanoseconds(Timestamp other) |
Gets the difference to the passed timestamps in nanoseconds.
|
java.util.Date |
toDate() |
Converts the timestamp to a
Date. |
java.time.Instant |
toInstant() |
Converts the timestamp to an
Instant. |
java.sql.Timestamp |
toSqlTimestamp() |
Converts the timestamp to an
SQL Timestamp. |
public LegacyTimestamp()
public LegacyTimestamp(long milliseconds)
milliseconds - Milliseconds since January 1, 1970, 00:00:00 GMTpublic java.util.Date toDate()
TimestampDate.@IgnoreJRERequirement public java.time.Instant toInstant()
TimestampInstant.public java.sql.Timestamp toSqlTimestamp()
TimestampSQL Timestamp.toSqlTimestamp in interface TimestampSQL Timestamppublic long calcDifferenceInNanoseconds(Timestamp other)
TimestampcalcDifferenceInNanoseconds in interface Timestampother - Timestamp to subtractCopyright © 2024. All rights reserved.