Package | Description |
---|---|
javax.time |
Provides classes to manage the continuous time scale including a wrapper
for the system clock.
|
Modifier and Type | Method and Description |
---|---|
protected UTCInstant |
UTCRules.convertToUTC(Instant instant)
Converts an
Instant to a UTCInstant . |
protected abstract UTCInstant |
UTCRules.convertToUTC(TAIInstant taiInstant)
Converts a
TAIInstant to a UTCInstant . |
UTCInstant |
UTCInstant.minus(Duration duration)
Returns a copy of this instant with the specified duration subtracted.
|
static UTCInstant |
UTCInstant.of(Instant instant)
Obtains an instance of
UTCInstant from a provider of instants
using the system default leap second rules. |
static UTCInstant |
UTCInstant.of(Instant instant,
UTCRules rules)
Obtains an instance of
UTCInstant from a provider of instants
using the specified leap second rules. |
static UTCInstant |
UTCInstant.of(TAIInstant taiInstant)
Obtains an instance of
UTCInstant from a TAI instant
using the system default leap second rules. |
static UTCInstant |
UTCInstant.of(TAIInstant taiInstant,
UTCRules rules)
Obtains an instance of
UTCInstant from a TAI instant
using the specified leap second rules. |
static UTCInstant |
UTCInstant.ofModifiedJulianDays(long mjDay,
long nanoOfDay)
Obtains an instance of
UTCInstant 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 of
UTCInstant from a Modified Julian Day with
a nanosecond fraction of second using the specified leap second rules. |
UTCInstant |
UTCInstant.plus(Duration duration)
Returns a copy of this instant with the specified duration added.
|
UTCInstant |
TAIInstant.toUTCInstant()
Converts this instant to a
UTCInstant using the system default
leap second rules. |
UTCInstant |
TimeSource.utcInstant()
Gets the current
UTCInstant . |
Modifier and Type | Method and Description |
---|---|
int |
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 a
UTCInstant to an Instant . |
protected TAIInstant |
UTCRules.convertToTAI(UTCInstant utcInstant)
Converts a
UTCInstant to a TAIInstant . |
Duration |
UTCInstant.durationUntil(UTCInstant utcInstant)
Returns the duration between this instant and the specified instant.
|
static TAIInstant |
TAIInstant.of(UTCInstant instant)
Obtains an instance of
TAIInstant from a UTCInstant . |
Copyright © 2014. All rights reserved.