LegacyTimestamp, PreciseTimestamppublic 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.Instantjava.sql.Timestamp toSqlTimestamp()
SQL Timestamp.SQL Timestamplong calcDifferenceInNanoseconds(Timestamp other)
other - Timestamp to subtractCopyright © 2024. All rights reserved.