Package | Description |
---|---|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
Modifier and Type | Method and Description |
---|---|
static ZoneResolver |
ZoneResolvers.combination(ZoneResolver gapResolver,
ZoneResolver overlapResolver)
Creates a combined resolver, using two different strategies for gap and overlap.
|
static ZoneResolver |
ZoneResolvers.postGapPreOverlap()
Returns the post-gap-pre-overlap zone resolver, which returns the instant
after the transition for gaps, and the earlier offset for overlaps.
|
static ZoneResolver |
ZoneResolvers.postTransition()
Returns the post-transition zone resolver, which returns the instant
after the transition for gaps, and the later offset for overlaps.
|
static ZoneResolver |
ZoneResolvers.preTransition()
Returns the pre-transition zone resolver, which returns the instant
one nanosecond before the transition for gaps, and the earlier offset
for overlaps.
|
static ZoneResolver |
ZoneResolvers.pushForward()
Returns the push forward resolver, which changes the time of the result
in a gap by adding the lenth of the gap.
|
static ZoneResolver |
ZoneResolvers.retainOffset()
Returns the retain offset resolver, which returns the instant after the
transition for gaps, and the same offset for overlaps.
|
static ZoneResolver |
ZoneResolvers.strict()
Returns the strict zone resolver which rejects all gaps and overlaps
as invalid, resulting in an exception.
|
Modifier and Type | Method and Description |
---|---|
ZonedDateTime |
LocalDateTime.atZone(TimeZone zone,
ZoneResolver resolver)
Returns a zoned date-time formed from this date-time and the specified time-zone
taking control of what occurs in time-line gaps and overlaps.
|
ZonedDateTime |
OffsetDateTime.atZoneSimilarLocal(TimeZone zone,
ZoneResolver resolver)
Returns a zoned date-time formed from this date-time and the specified time-zone
taking control of what occurs in time-line gaps and overlaps.
|
static ZoneResolver |
ZoneResolvers.combination(ZoneResolver gapResolver,
ZoneResolver overlapResolver)
Creates a combined resolver, using two different strategies for gap and overlap.
|
ZonedDateTime |
ZonedDateTime.minus(PeriodProvider periodProvider,
ZoneResolver resolver)
Returns a copy of this
ZonedDateTime with the specified period subtracted. |
static ZonedDateTime |
ZonedDateTime.of(DateProvider dateProvider,
TimeProvider timeProvider,
TimeZone zone,
ZoneResolver resolver)
Obtains an instance of
ZonedDateTime from a local date and time
providing a resolver to handle an invalid date-time. |
static ZonedDateTime |
ZonedDateTime.of(DateTimeProvider dateTimeProvider,
TimeZone zone,
ZoneResolver resolver)
Obtains an instance of
ZonedDateTime from a local date-time
providing a resolver to handle an invalid date-time. |
static ZonedDateTime |
ZonedDateTime.of(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int nanoOfSecond,
TimeZone zone,
ZoneResolver resolver)
Obtains an instance of
ZonedDateTime from year, month,
day, hour, minute, second, nanosecond and time-zone
providing a resolver to handle an invalid date-time. |
static ZonedDateTime |
ZonedDateTime.of(int year,
MonthOfYear monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int nanoOfSecond,
TimeZone zone,
ZoneResolver resolver)
Obtains an instance of
ZonedDateTime from year, month,
day, hour, minute, second, nanosecond and time-zone
providing a resolver to handle an invalid date-time. |
ZonedDateTime |
ZonedDateTime.plus(PeriodProvider periodProvider,
ZoneResolver resolver)
Returns a copy of this
ZonedDateTime with the specified period added. |
ZonedDateTime |
ZonedDateTime.with(DateAdjuster adjuster,
ZoneResolver resolver)
Returns a copy of this
ZonedDateTime with the date altered using the
adjuster, providing a resolver to handle an invalid date-time. |
ZonedDateTime |
ZonedDateTime.with(TimeAdjuster adjuster,
ZoneResolver resolver)
Returns a copy of this
ZonedDateTime with the time altered using the
adjuster, providing a resolver to handle an invalid date-time. |
ZonedDateTime |
ZonedDateTime.withZoneSameLocal(TimeZone zone,
ZoneResolver resolver)
Returns a copy of this ZonedDateTime with a different time-zone,
retaining the local date-time if possible.
|
Copyright © 2014. All rights reserved.