Package | Description |
---|---|
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 | Field | Description |
---|---|---|
static ZoneOffset |
ZoneOffset.UTC |
The time-zone offset for UTC, with an id of 'Z'.
|
Modifier and Type | Method | Description |
---|---|---|
ZoneOffset |
OffsetDate.getOffset() |
Gets the zone offset.
|
ZoneOffset |
OffsetDateTime.getOffset() |
Gets the zone offset.
|
ZoneOffset |
OffsetTime.getOffset() |
Gets the zone offset representing how far ahead or behind UTC the time is.
|
ZoneOffset |
ZonedDateTime.getOffset() |
Gets the zone offset, such as '+01:00'.
|
static ZoneOffset |
ZoneOffset.of(String offsetID) |
Obtains an instance of
ZoneOffset using the id. |
static ZoneOffset |
ZoneOffset.of(PeriodProvider periodProvider) |
Obtains an instance of
ZoneOffset from a period. |
static ZoneOffset |
ZoneOffset.ofHours(int hours) |
Obtains an instance of
ZoneOffset using an offset in hours. |
static ZoneOffset |
ZoneOffset.ofHoursMinutes(int hours,
int minutes) |
Obtains an instance of
ZoneOffset using an offset in
hours and minutes. |
static ZoneOffset |
ZoneOffset.ofHoursMinutesSeconds(int hours,
int minutes,
int seconds) |
Obtains an instance of
ZoneOffset using an offset in
hours, minutes and seconds. |
static ZoneOffset |
ZoneOffset.ofTotalSeconds(int totalSeconds) |
Obtains an instance of
ZoneOffset specifying the total offset in seconds |
ZoneOffset |
ZoneOffset.plus(PeriodProvider periodProvider) |
Returns a copy of this offset with the specified period added.
|
Modifier and Type | Method | Description |
---|---|---|
static CalendricalRule<ZoneOffset> |
ZoneOffset.rule() |
Gets the rule for the zone-offset.
|
Modifier and Type | Method | Description |
---|---|---|
OffsetDate |
LocalDate.atOffset(ZoneOffset offset) |
Returns an offset date formed from this time and the specified offset.
|
OffsetDateTime |
LocalDateTime.atOffset(ZoneOffset offset) |
Returns an offset date-time formed from this date-time and the specified offset.
|
OffsetTime |
LocalTime.atOffset(ZoneOffset offset) |
Returns an offset time formed from this time and the specified offset.
|
int |
ZoneOffset.compareTo(ZoneOffset other) |
Compares this offset to another offset in descending order.
|
static OffsetDate |
OffsetDate.of(int year,
int monthOfYear,
int dayOfMonth,
ZoneOffset offset) |
Obtains an instance of
OffsetDate from a year, month and day. |
static OffsetDate |
OffsetDate.of(int year,
MonthOfYear monthOfYear,
int dayOfMonth,
ZoneOffset offset) |
Obtains an instance of
OffsetDate from a year, month and day. |
static OffsetDate |
OffsetDate.of(DateProvider dateProvider,
ZoneOffset offset) |
Obtains an instance of
OffsetDate from a date provider. |
static OffsetDateTime |
OffsetDateTime.of(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int nanoOfSecond,
ZoneOffset offset) |
Obtains an instance of
OffsetDateTime from year, month,
day, hour, minute, second and nanosecond. |
static OffsetDateTime |
OffsetDateTime.of(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
ZoneOffset offset) |
Obtains an instance of
OffsetDateTime from year, month,
day, hour, minute and second, setting the nanosecond to zero. |
static OffsetDateTime |
OffsetDateTime.of(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
ZoneOffset offset) |
Obtains an instance of
OffsetDateTime from year, month,
day, hour and minute, setting the second and nanosecond to zero. |
static OffsetDateTime |
OffsetDateTime.of(int year,
MonthOfYear monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int nanoOfSecond,
ZoneOffset offset) |
Obtains an instance of
OffsetDateTime from year, month,
day, hour, minute, second and nanosecond. |
static OffsetDateTime |
OffsetDateTime.of(int year,
MonthOfYear monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
ZoneOffset offset) |
Obtains an instance of
OffsetDateTime from year, month,
day, hour, minute and second, setting the nanosecond to zero. |
static OffsetDateTime |
OffsetDateTime.of(int year,
MonthOfYear monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
ZoneOffset offset) |
Obtains an instance of
OffsetDateTime from year, month,
day, hour and minute, setting the second and nanosecond to zero. |
static OffsetDateTime |
OffsetDateTime.of(DateProvider dateProvider,
TimeProvider timeProvider,
ZoneOffset offset) |
Obtains an instance of
OffsetDateTime from a date, time and zone offset. |
static OffsetDateTime |
OffsetDateTime.of(DateTimeProvider dateTimeProvider,
ZoneOffset offset) |
Obtains an instance of
OffsetDateTime from a date-time provider. |
static OffsetTime |
OffsetTime.of(int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int nanoOfSecond,
ZoneOffset offset) |
Obtains an instance of
OffsetTime from an hour, minute, second and nanosecond. |
static OffsetTime |
OffsetTime.of(int hourOfDay,
int minuteOfHour,
int secondOfMinute,
ZoneOffset offset) |
Obtains an instance of
OffsetTime from an hour, minute and second. |
static OffsetTime |
OffsetTime.of(int hourOfDay,
int minuteOfHour,
ZoneOffset offset) |
Obtains an instance of
OffsetTime from an hour and minute. |
static OffsetTime |
OffsetTime.of(TimeProvider timeProvider,
ZoneOffset offset) |
Obtains an instance of
OffsetTime from a time provider. |
static TimeZone |
TimeZone.of(ZoneOffset offset) |
Obtains an instance of
TimeZone representing a fixed time-zone. |
static OffsetDateTime |
OffsetDateTime.ofEpochSeconds(long epochSeconds,
ZoneOffset offset) |
Obtains an instance of
OffsetDateTime using seconds from the
epoch of 1970-01-01T00:00:00Z. |
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 OffsetDateTime |
OffsetDateTime.ofMidnight(int year,
int monthOfYear,
int dayOfMonth,
ZoneOffset offset) |
Obtains an instance of
OffsetDateTime from year, month and
day with the time set to midnight at the start of day. |
static OffsetDateTime |
OffsetDateTime.ofMidnight(int year,
MonthOfYear monthOfYear,
int dayOfMonth,
ZoneOffset offset) |
Obtains an instance of
OffsetDateTime from year, month and
day with the time set to midnight at the start of day. |
static OffsetDateTime |
OffsetDateTime.ofMidnight(DateProvider dateProvider,
ZoneOffset offset) |
Obtains an instance of
OffsetDateTime from a date with the
time set to midnight at the start of day. |
OffsetDate |
OffsetDate.withOffset(ZoneOffset offset) |
Returns a copy of this
OffsetDate with the specified offset. |
OffsetDateTime |
OffsetDateTime.withOffsetSameInstant(ZoneOffset offset) |
Returns a copy of this
OffsetDateTime with the specified offset ensuring
that the result is at the same instant. |
OffsetTime |
OffsetTime.withOffsetSameInstant(ZoneOffset offset) |
Returns a copy of this
OffsetTime with the specified offset ensuring
that the result is at the same instant on an implied day. |
OffsetDateTime |
OffsetDateTime.withOffsetSameLocal(ZoneOffset offset) |
Returns a copy of this
OffsetDateTime with the specified offset ensuring
that the result has the same local date-time. |
OffsetTime |
OffsetTime.withOffsetSameLocal(ZoneOffset offset) |
Returns a copy of this
OffsetTime with the specified offset ensuring
that the result has the same local time. |
Modifier and Type | Method | Description |
---|---|---|
ZoneOffset |
ZoneOffsetInfo.getEstimatedOffset() |
Gets an estimated offset for the local date-time.
|
ZoneOffset |
ZoneOffsetInfo.getOffset() |
Gets the offset applicable at this point on the local time-line.
|
abstract ZoneOffset |
ZoneRules.getOffset(InstantProvider instant) |
Gets the offset applicable at the specified instant in this zone.
|
ZoneOffset |
ZoneOffsetTransition.getOffsetAfter() |
Gets the offset after the transition.
|
ZoneOffset |
ZoneOffsetTransitionRule.getOffsetAfter() |
Gets the offset after the transition.
|
ZoneOffset |
ZoneOffsetTransition.getOffsetBefore() |
Gets the offset before the transition.
|
ZoneOffset |
ZoneOffsetTransitionRule.getOffsetBefore() |
Gets the offset before the transition.
|
ZoneOffset |
ZoneOffsetTransitionRule.getStandardOffset() |
Gets the standard offset in force at the transition.
|
abstract ZoneOffset |
ZoneRules.getStandardOffset(InstantProvider instantProvider) |
Gets the standard offset for the specified instant in this zone.
|
Modifier and Type | Method | Description |
---|---|---|
ZoneRulesBuilder |
ZoneRulesBuilder.addWindow(ZoneOffset standardOffset,
LocalDateTime until,
ZoneRulesBuilder.TimeDefinition untilDefinition) |
Adds a window to the builder that can be used to filter a set of rules.
|
ZoneRulesBuilder |
ZoneRulesBuilder.addWindowForever(ZoneOffset standardOffset) |
Adds a window that applies until the end of time to the builder that can be
used to filter a set of rules.
|
OffsetDateTime |
ZoneRulesBuilder.TimeDefinition.createDateTime(LocalDateTime dateTime,
ZoneOffset standardOffset,
ZoneOffset wallOffset) |
Creates the offset date-time from the specified local date-time.
|
boolean |
ZoneOffsetInfo.isValidOffset(ZoneOffset offset) |
Checks if the specified offset is valid for this date-time.
|
boolean |
ZoneOffsetTransition.isValidOffset(ZoneOffset offset) |
Checks if the specified offset is valid during this transition.
|
static ZoneOffsetInfo |
ZoneOffsetInfo.of(LocalDateTime dateTime,
ZoneOffset offset,
ZoneOffsetTransition transition) |
Creates an instance representing a simple single offset or a transition.
|
static ZoneOffsetTransition |
ZoneOffsetTransition.of(OffsetDateTime transition,
ZoneOffset offsetAfter) |
Obtains an instance defining a transition between two offsets.
|
static ZoneOffsetTransitionRule |
ZoneOffsetTransitionRule.of(MonthOfYear month,
int dayOfMonthIndicator,
DayOfWeek dayOfWeek,
LocalTime time,
boolean timeEndOfDay,
ZoneRulesBuilder.TimeDefinition timeDefnition,
ZoneOffset standardOffset,
ZoneOffset offsetBefore,
ZoneOffset offsetAfter) |
Creates an instance defining the yearly rule to create transitions between two offsets.
|
static ZoneRules |
ZoneRules.ofFixed(ZoneOffset offset) |
Obtains a rules instance for a specific offset.
|
Constructor | Description |
---|---|
ZoneOffsetTransitionRule(MonthOfYear month,
int dayOfMonthIndicator,
DayOfWeek dayOfWeek,
LocalTime time,
boolean timeEndOfDay,
ZoneRulesBuilder.TimeDefinition timeDefnition,
ZoneOffset standardOffset,
ZoneOffset offsetBefore,
ZoneOffset offsetAfter) |
Creates an instance defining the yearly rule to create transitions between two offsets.
|
Copyright © 2019. All rights reserved.