Uses of Class
javax.time.UTCInstant
Packages that use UTCInstant
Package
Description
Provides classes to manage the continuous time scale including a wrapper
for the system clock.
-
Uses of UTCInstant in javax.time
Methods in javax.time that return UTCInstantModifier and TypeMethodDescriptionprotected UTCInstant
SystemUTCRules.convertToUTC
(TAIInstant taiInstant) protected UTCInstant
UTCRules.convertToUTC
(Instant instant) Converts anInstant
to aUTCInstant
.protected abstract UTCInstant
UTCRules.convertToUTC
(TAIInstant taiInstant) Converts aTAIInstant
to aUTCInstant
.Returns a copy of this instant with the specified duration subtracted.static UTCInstant
Obtains an instance ofUTCInstant
from a provider of instants using the system default leap second rules.static UTCInstant
Obtains an instance ofUTCInstant
from a provider of instants using the specified leap second rules.static UTCInstant
UTCInstant.of
(TAIInstant taiInstant) Obtains an instance ofUTCInstant
from a TAI instant using the system default leap second rules.static UTCInstant
UTCInstant.of
(TAIInstant taiInstant, UTCRules rules) Obtains an instance ofUTCInstant
from a TAI instant using the specified leap second rules.static UTCInstant
UTCInstant.ofModifiedJulianDays
(long mjDay, long nanoOfDay) Obtains an instance ofUTCInstant
from a Modified Julian Day with a nanosecond fraction of second using the system default leap second rules.static UTCInstant
UTCInstant.ofModifiedJulianDays
(long mjDay, long nanoOfDay, UTCRules rules) Obtains an instance ofUTCInstant
from a Modified Julian Day with a nanosecond fraction of second using the specified leap second rules.Returns a copy of this instant with the specified duration added.TAIInstant.toUTCInstant()
Converts this instant to aUTCInstant
using the system default leap second rules.TimeSource.utcInstant()
Gets the currentUTCInstant
.Methods in javax.time with parameters of type UTCInstantModifier and TypeMethodDescriptionint
UTCInstant.compareTo
(UTCInstant otherInstant) Compares this instant to another based on the time-line, then the name of the rules.protected Instant
UTCRules.convertToInstant
(UTCInstant utcInstant) Converts aUTCInstant
to anInstant
.protected TAIInstant
UTCRules.convertToTAI
(UTCInstant utcInstant) Converts aUTCInstant
to aTAIInstant
.UTCInstant.durationUntil
(UTCInstant utcInstant) Returns the duration between this instant and the specified instant.static TAIInstant
TAIInstant.of
(UTCInstant instant) Obtains an instance ofTAIInstant
from aUTCInstant
.