| Package | Description |
|---|---|
| org.threeten.extra.scale |
Support for time scales that extend
java.time.*. |
| Modifier and Type | Method | Description |
|---|---|---|
UtcInstant |
UtcRules.convertToUtc(Instant instant) |
Converts an
Instant to a UtcInstant. |
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 an Instant. |
static UtcInstant |
UtcInstant.of(TaiInstant instant) |
Obtains an instance of
UtcInstant from a TaiInstant. |
static UtcInstant |
UtcInstant.ofModifiedJulianDay(long mjDay,
long nanoOfDay) |
Obtains an instance of
UtcInstant from a Modified Julian Day with
a nanosecond fraction of day. |
static UtcInstant |
UtcInstant.parse(CharSequence text) |
Obtains an instance of
UtcInstant from a text string
2007-12-03T10:15:30.00Z. |
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. |
UtcInstant |
TimeSource.utcInstant() |
Gets the current
UtcInstant. |
UtcInstant |
UtcInstant.withModifiedJulianDay(long mjDay) |
Returns a copy of this
UtcInstant with the Modified Julian Day (MJD) altered. |
UtcInstant |
UtcInstant.withNanoOfDay(long nanoOfDay) |
Returns a copy of this
UtcInstant with the nano-of-day altered. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
UtcInstant.compareTo(UtcInstant otherInstant) |
Compares this instant to another based on the time-line.
|
Instant |
UtcRules.convertToInstant(UtcInstant utcInstant) |
Converts a
UtcInstant to an Instant. |
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 © 2010–2019 ThreeTen.org. All rights reserved.