Package | Description |
---|---|
javax.time |
Provides classes to manage the continuous time scale including a wrapper
for the system clock.
|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
javax.time.calendar.zone |
Provides classes to implement time-zones and their rules.
|
Modifier and Type | Class | Description |
---|---|---|
class |
Instant |
An instantaneous point on the time-line.
|
Modifier and Type | Method | Description |
---|---|---|
static Duration |
Duration.between(InstantProvider startInclusive,
InstantProvider endExclusive) |
Obtains an instance of
Duration representing the duration between two instants. |
static TimeSource |
TimeSource.fixed(InstantProvider fixedInstantProvider) |
Gets a time-source that always returns the same
Instant . |
static Instant |
Instant.of(InstantProvider instantProvider) |
Obtains an instance of
Instant from a provider of instants. |
Modifier and Type | Class | Description |
---|---|---|
class |
OffsetDateTime |
A date-time with a zone offset from UTC in the ISO-8601 calendar system,
such as
2007-12-03T10:15:30+01:00 . |
class |
ZonedDateTime |
A date-time with a time-zone in the ISO-8601 calendar system,
such as
2007-12-03T10:15:30+01:00 Europe/Paris . |
Modifier and Type | Method | Description |
---|---|---|
static OffsetDate |
OffsetDate.ofInstant(InstantProvider instantProvider,
ZoneOffset offset) |
Obtains an instance of
OffsetDate from an InstantProvider . |
static OffsetDateTime |
OffsetDateTime.ofInstant(InstantProvider instantProvider,
ZoneOffset offset) |
Obtains an instance of
OffsetDateTime from an InstantProvider . |
static OffsetTime |
OffsetTime.ofInstant(InstantProvider instantProvider,
ZoneOffset offset) |
Obtains an instance of
OffsetTime from an InstantProvider . |
static ZonedDateTime |
ZonedDateTime.ofInstant(InstantProvider instantProvider,
TimeZone zone) |
Obtains an instance of
ZonedDateTime from an Instant . |
Modifier and Type | Method | Description |
---|---|---|
Period |
ZoneRules.getDaylightSavings(InstantProvider instantProvider) |
Gets the amount of daylight savings in use for the specified instant in this zone.
|
abstract ZoneOffset |
ZoneRules.getOffset(InstantProvider instant) |
Gets the offset applicable at the specified instant in this zone.
|
abstract ZoneOffset |
ZoneRules.getStandardOffset(InstantProvider instantProvider) |
Gets the standard offset for the specified instant in this zone.
|
boolean |
ZoneRules.isDaylightSavings(InstantProvider instant) |
Gets the standard offset for the specified instant in this zone.
|
abstract ZoneOffsetTransition |
ZoneRules.nextTransition(InstantProvider instantProvider) |
Gets the next transition after the specified transition.
|
abstract ZoneOffsetTransition |
ZoneRules.previousTransition(InstantProvider instantProvider) |
Gets the previous transition after the specified transition.
|
Copyright © 2019. All rights reserved.