Package io.sentry

Class SentryInstantDate

java.lang.Object
io.sentry.SentryDate
io.sentry.SentryInstantDate
All Implemented Interfaces:
Comparable<SentryDate>

public final class SentryInstantDate extends SentryDate
This class uses Instant to provide timestamps.

NOTE: This should only be used on Java 9+ and Android API 26+

  • Constructor Details

    • SentryInstantDate

      public SentryInstantDate()
    • SentryInstantDate

      public SentryInstantDate(@NotNull @NotNull Instant date)
  • Method Details

    • nanoTimestamp

      public long nanoTimestamp()
      Description copied from class: SentryDate
      Returns the date in nanoseconds as long.
      Specified by:
      nanoTimestamp in class SentryDate