Uses of Class
javax.time.Instant
Packages that use Instant
Package
Description
Provides classes to manage the continuous time scale including a wrapper
for the system clock.
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
Provides classes to implement time-zones and their rules.
-
Uses of Instant in javax.time
Classes in javax.time that implement interfaces with type arguments of type InstantFields in javax.time declared as InstantModifier and TypeFieldDescriptionstatic final InstantInstant.EPOCHConstant for the 1970-01-01T00:00:00Z epoch instant.private final InstantTimeSource.FixedTimeSource.instantThe fixed instant to return.Methods in javax.time that return InstantModifier and TypeMethodDescriptionprotected InstantUTCRules.convertToInstant(UTCInstant utcInstant) Converts aUTCInstantto anInstant.private static InstantInstant.create(long seconds, int nanoOfSecond) Obtains an instance ofInstantusing seconds and nanoseconds.TimeSource.FixedTimeSource.instant()Gets the currentInstant.abstract InstantTimeSource.instant()Gets the currentInstant.TimeSource.OffsetSystemTimeSource.instant()Gets the currentInstant.TimeSource.SystemTimeSource.instant()Gets the currentInstant.Returns a copy of this duration with the specified duration subtracted.Returns a copy of this instant with the specified duration subtracted.Instant.minusMillis(long millisToSubtract) Returns a copy of this instant with the specified duration in milliseconds subtracted.Instant.minusNanos(long nanosToSubtract) Returns a copy of this instant with the specified duration in nanoseconds subtracted.Instant.minusSeconds(long secondsToSubtract) Returns a copy of this instant with the specified duration in seconds subtracted.static InstantInstant.now()Obtains the current instant from the system time-source in the default time-zone.static InstantInstant.now(TimeSource timeSource) Obtains the current instant from the specified clock.static InstantInstant.of(InstantProvider instantProvider) Obtains an instance ofInstantfrom a provider of instants.static InstantInstant.ofEpochMillis(long epochMillis) Obtains an instance ofInstantusing milliseconds from the epoch of 1970-01-01T00:00:00Z.static InstantInstant.ofEpochNanos(long epochNanos) Obtains an instance ofInstantusing nanoseconds from the epoch of 1970-01-01T00:00:00Z.static InstantInstant.ofEpochNanos(BigInteger epochNanos) Obtains an instance ofInstantusing nanoseconds from the epoch of 1970-01-01T00:00:00Z.static InstantInstant.ofEpochSeconds(long epochSeconds) Obtains an instance ofInstantusing seconds from the epoch of 1970-01-01T00:00:00Z.static InstantInstant.ofEpochSeconds(long epochSeconds, long nanoAdjustment) Obtains an instance ofInstantusing seconds from the epoch of 1970-01-01T00:00:00Z and nanosecond fraction of second.static InstantInstant.ofEpochSeconds(BigDecimal epochSeconds) Obtains an instance ofInstantusing seconds from the epoch of 1970-01-01T00:00:00Z.static InstantObtains an instance ofInstantby parsing a string.private InstantInstant.plus(long secondsToAdd, long nanosToAdd) Returns a copy of this instant with the specified duration added.Returns a copy of this duration with the specified duration added.Returns a copy of this instant with the specified duration added.Instant.plusMillis(long millisToAdd) Returns a copy of this instant with the specified duration in milliseconds added.Instant.plusNanos(long nanosToAdd) Returns a copy of this instant with the specified duration in nanoseconds added.Instant.plusSeconds(long secondsToAdd) Returns a copy of this instant with the specified duration in seconds added.Instant.toInstant()Converts this instant to anInstant, trivially returningthis.InstantProvider.toInstant()Returns an instance ofInstantinitialized from the state of this object.TAIInstant.toInstant()Converts this instant to anInstantusing the system default leap second rules.UTCInstant.toInstant()Converts this instant to anInstantusing the system default leap second rules.Methods in javax.time with parameters of type InstantModifier and TypeMethodDescriptionintCompares this instant to the specified instant.protected UTCInstantUTCRules.convertToUTC(Instant instant) Converts anInstantto aUTCInstant.booleanChecks if this instant is after the specified instant.booleanChecks if this instant is before the specified instant.static TAIInstantObtains an instance ofTAIInstantfrom anInstantusing the system default leap second rules.static UTCInstantObtains an instance ofUTCInstantfrom a provider of instants using the system default leap second rules.static UTCInstantObtains an instance ofUTCInstantfrom a provider of instants using the specified leap second rules.Constructors in javax.time with parameters of type InstantModifierConstructorDescriptionprivateFixedTimeSource(Instant fixedInstant) Restricted constructor. -
Uses of Instant in javax.time.calendar
Methods in javax.time.calendar that return Instant -
Uses of Instant in javax.time.calendar.zone
Methods in javax.time.calendar.zone that return InstantMethods in javax.time.calendar.zone with parameters of type InstantModifier and TypeMethodDescriptionZoneRules.getOffsetInfo(Instant instant) Gets the offset information for the specified instant in this zone.