Uses of Class
javax.time.TAIInstant
-
Packages that use TAIInstant Package Description javax.time Provides classes to manage the continuous time scale including a wrapper for the system clock. -
-
Uses of TAIInstant in javax.time
Methods in javax.time that return TAIInstant Modifier and Type Method Description protected TAIInstant
UTCRules. convertToTAI(UTCInstant utcInstant)
Converts aUTCInstant
to aTAIInstant
.TAIInstant
TAIInstant. minus(Duration duration)
Returns a copy of this instant with the specified duration subtracted.static TAIInstant
TAIInstant. of(Instant instant)
Obtains an instance ofTAIInstant
from anInstant
using the system default leap second rules.static TAIInstant
TAIInstant. of(UTCInstant instant)
Obtains an instance ofTAIInstant
from aUTCInstant
.static TAIInstant
TAIInstant. ofTAISeconds(long taiSeconds, long nanoAdjustment)
Obtains an instance ofTAIInstant
from the number of seconds from the TAI epoch of 1958-01-01T00:00:00(TAI) with a nanosecond fraction of second.static TAIInstant
TAIInstant. parse(java.lang.String text)
Obtains an instance ofTAIInstant
from a text string.TAIInstant
TAIInstant. plus(Duration duration)
Returns a copy of this instant with the specified duration added.TAIInstant
TimeSource. taiInstant()
Gets the currentTAIInstant
.TAIInstant
UTCInstant. toTAIInstant()
Converts this instant to aTAIInstant
using the stored leap second rules.Methods in javax.time with parameters of type TAIInstant Modifier and Type Method Description int
TAIInstant. compareTo(TAIInstant otherInstant)
Compares this instant to another based on the time-line.protected UTCInstant
SystemUTCRules. convertToUTC(TAIInstant taiInstant)
protected abstract UTCInstant
UTCRules. convertToUTC(TAIInstant taiInstant)
Converts aTAIInstant
to aUTCInstant
.Duration
TAIInstant. durationUntil(TAIInstant taiInstant)
Returns the duration between this instant and the specified instant.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.
-