LegacyTimestamp
, PreciseTimestamp
public interface Timestamp
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 . |
java.util.Date toDate()
Date
.Date
@IgnoreJRERequirement java.time.Instant toInstant()
Instant
.Instant
java.sql.Timestamp toSqlTimestamp()
SQL Timestamp
.SQL Timestamp
long calcDifferenceInNanoseconds(Timestamp other)
other
- Timestamp to subtractCopyright © 2022. All rights reserved.