ZonedDateTime |
LocalDate.atStartOfDayInZone(TimeZone zone) |
Returns a zoned date-time from this date at the earliest valid time according
to the rules in the time-zone.
|
ZonedDateTime |
OffsetDate.atStartOfDayInZone(TimeZone zone) |
Returns a zoned date-time from this date at the earliest valid time according
to the rules in the time-zone ignoring the current offset.
|
ZonedDateTime |
LocalDateTime.atZone(TimeZone zone) |
Returns a zoned date-time formed from this date-time and the specified time-zone.
|
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.atZoneSameInstant(TimeZone zone) |
Returns a zoned date-time formed from the instant represented by this
date-time and the specified time-zone.
|
ZonedDateTime |
OffsetDateTime.atZoneSimilarLocal(TimeZone zone) |
Returns a zoned date-time formed from this date-time and the specified time-zone.
|
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 Clock |
Clock.clock(TimeSource timeSource,
TimeZone timeZone) |
Gets a clock that obtains the current date and time using the specified
time-source and time-zone.
|
protected abstract OffsetDateTime |
ZoneResolver.handleGap(TimeZone zone,
ZoneRules rules,
ZoneOffsetTransition gapInfo,
LocalDateTime newDateTime,
OffsetDateTime oldDateTime) |
Defines the strategy for selecting an offset to use for a local date-time
when the local date-time is in a local time-line gap.
|
protected abstract OffsetDateTime |
ZoneResolver.handleOverlap(TimeZone zone,
ZoneRules rules,
ZoneOffsetTransition overlapInfo,
LocalDateTime newDateTime,
OffsetDateTime oldDateTime) |
Defines the strategy for selecting an offset to use for a local date-time
when the local date-time is in a local time-line overlap.
|
static ZonedDateTime |
ZonedDateTime.of(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int nanoOfSecond,
TimeZone zone) |
Obtains an instance of ZonedDateTime from year, month,
day, hour, minute, second, nanosecond and time-zone
where the date-time must be valid for the time-zone.
|
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) |
Obtains an instance of ZonedDateTime from year, month,
day, hour, minute, second, nanosecond and time-zone
where the date-time must be valid for the time-zone.
|
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.
|
static ZonedDateTime |
ZonedDateTime.of(DateProvider dateProvider,
TimeProvider timeProvider,
TimeZone zone) |
Obtains an instance of ZonedDateTime from a local date and time
where the date-time must be valid for the time-zone.
|
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) |
Obtains an instance of ZonedDateTime from a local date-time
where the date-time must be valid for the time-zone.
|
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(OffsetDateTime dateTime,
TimeZone zone) |
Obtains an instance of ZonedDateTime from an OffsetDateTime
ensuring that the offset provided is valid for the time-zone.
|
static ZonedDateTime |
ZonedDateTime.ofEpochSeconds(long epochSeconds,
TimeZone zone) |
Obtains an instance of ZonedDateTime using seconds from the
epoch of 1970-01-01T00:00:00Z.
|
static ZonedDateTime |
ZonedDateTime.ofInstant(OffsetDateTime dateTime,
TimeZone zone) |
Obtains an instance of ZonedDateTime from the instant of an OffsetDateTime .
|
static ZonedDateTime |
ZonedDateTime.ofInstant(InstantProvider instantProvider,
TimeZone zone) |
Obtains an instance of ZonedDateTime from an Instant .
|
OffsetDateTime |
ZoneResolver.resolve(TimeZone zone,
LocalDateTime newDateTime,
ZonedDateTime oldDateTime) |
Resolves the new local date-time to an offset date-time using the zone.
|
static Clock |
Clock.system(TimeZone zone) |
Gets a clock that obtains the current date and time using the system millisecond
clock and the specified time-zone.
|
Clock |
Clock.withZone(TimeZone zone) |
Returns a copy of this clock with a different time-zone.
|
ZonedDateTime |
ZonedDateTime.withZoneSameInstant(TimeZone zone) |
Returns a copy of this ZonedDateTime with a different time-zone,
retaining the instant.
|
ZonedDateTime |
ZonedDateTime.withZoneSameLocal(TimeZone zone) |
Returns a copy of this ZonedDateTime with a different time-zone,
retaining the local date-time if possible.
|
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.
|