Package io.sentry
Class SentryInstantDate
java.lang.Object
io.sentry.SentryDate
io.sentry.SentryInstantDate
- All Implemented Interfaces:
Comparable<SentryDate>
This class uses
Instant
to provide timestamps.
NOTE: This should only be used on Java 9+ and Android API 26+
-
Constructor Summary
-
Method Summary
Methods inherited from class io.sentry.SentryDate
compareTo, diff, isAfter, isBefore, laterDateNanosTimestampByDiff
-
Constructor Details
-
SentryInstantDate
public SentryInstantDate() -
SentryInstantDate
-
-
Method Details
-
nanoTimestamp
public long nanoTimestamp()Description copied from class:SentryDate
Returns the date in nanoseconds as long.- Specified by:
nanoTimestamp
in classSentryDate
-