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.
|
ZonedDateTime |
ZonedDateTime.minus(PeriodProvider periodProvider) |
Returns a copy of this ZonedDateTime with the specified period subtracted.
|
ZonedDateTime |
ZonedDateTime.minus(PeriodProvider periodProvider,
ZoneResolver resolver) |
Returns a copy of this ZonedDateTime with the specified period subtracted.
|
ZonedDateTime |
ZonedDateTime.minusDays(long days) |
Returns a copy of this ZonedDateTime with the specified period in days subtracted.
|
ZonedDateTime |
ZonedDateTime.minusDuration(int hours,
int minutes,
int seconds,
long nanos) |
Returns a copy of this ZonedDateTime with the specified duration subtracted.
|
ZonedDateTime |
ZonedDateTime.minusDuration(PeriodProvider periodProvider) |
Returns a copy of this ZonedDateTime with the specified duration subtracted.
|
ZonedDateTime |
ZonedDateTime.minusDuration(Duration duration) |
Returns a copy of this ZonedDateTime with the specified duration subtracted.
|
ZonedDateTime |
ZonedDateTime.minusHours(long hours) |
Returns a copy of this ZonedDateTime with the specified period in hours subtracted.
|
ZonedDateTime |
ZonedDateTime.minusMinutes(long minutes) |
Returns a copy of this ZonedDateTime with the specified period in minutes subtracted.
|
ZonedDateTime |
ZonedDateTime.minusMonths(long months) |
Returns a copy of this ZonedDateTime with the specified period in months subtracted.
|
ZonedDateTime |
ZonedDateTime.minusNanos(long nanos) |
Returns a copy of this ZonedDateTime with the specified period in nanoseconds subtracted.
|
ZonedDateTime |
ZonedDateTime.minusSeconds(long seconds) |
Returns a copy of this ZonedDateTime with the specified period in seconds subtracted.
|
ZonedDateTime |
ZonedDateTime.minusWeeks(long weeks) |
Returns a copy of this ZonedDateTime with the specified period in weeks subtracted.
|
ZonedDateTime |
ZonedDateTime.minusYears(long years) |
Returns a copy of this ZonedDateTime with the specified period in years subtracted.
|
static ZonedDateTime |
ZonedDateTime.now() |
Obtains the current date-time from the system clock in the default time-zone.
|
static ZonedDateTime |
ZonedDateTime.now(Clock clock) |
Obtains the current date-time from the specified clock.
|
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 .
|
static ZonedDateTime |
ZonedDateTime.parse(java.lang.String text) |
Obtains an instance of ZonedDateTime from a text string such as
2007-12-03T10:15:30+01:00[Europe/Paris] .
|
static ZonedDateTime |
ZonedDateTime.parse(java.lang.String text,
DateTimeFormatter formatter) |
Obtains an instance of ZonedDateTime from a text string using a specific formatter.
|
ZonedDateTime |
ZonedDateTime.plus(PeriodProvider periodProvider) |
Returns a copy of this ZonedDateTime with the specified period added.
|
ZonedDateTime |
ZonedDateTime.plus(PeriodProvider periodProvider,
ZoneResolver resolver) |
Returns a copy of this ZonedDateTime with the specified period added.
|
ZonedDateTime |
ZonedDateTime.plusDays(long days) |
Returns a copy of this ZonedDateTime with the specified period in days added.
|
ZonedDateTime |
ZonedDateTime.plusDuration(int hours,
int minutes,
int seconds,
long nanos) |
Returns a copy of this ZonedDateTime with the specified duration added.
|
ZonedDateTime |
ZonedDateTime.plusDuration(PeriodProvider periodProvider) |
Returns a copy of this ZonedDateTime with the specified duration added.
|
ZonedDateTime |
ZonedDateTime.plusDuration(Duration duration) |
Returns a copy of this ZonedDateTime with the specified duration added.
|
ZonedDateTime |
ZonedDateTime.plusHours(long hours) |
Returns a copy of this ZonedDateTime with the specified period in hours added.
|
ZonedDateTime |
ZonedDateTime.plusMinutes(long minutes) |
Returns a copy of this ZonedDateTime with the specified period in minutes added.
|
ZonedDateTime |
ZonedDateTime.plusMonths(long months) |
Returns a copy of this ZonedDateTime with the specified period in months added.
|
ZonedDateTime |
ZonedDateTime.plusNanos(long nanos) |
Returns a copy of this ZonedDateTime with the specified period in nanoseconds added.
|
ZonedDateTime |
ZonedDateTime.plusSeconds(long seconds) |
Returns a copy of this ZonedDateTime with the specified period in seconds added.
|
ZonedDateTime |
ZonedDateTime.plusWeeks(long weeks) |
Returns a copy of this ZonedDateTime with the specified period in weeks added.
|
ZonedDateTime |
ZonedDateTime.plusYears(long years) |
Returns a copy of this ZonedDateTime with the specified period in years added.
|
private static ZonedDateTime |
ZonedDateTime.resolve(LocalDateTime dateTime,
ZonedDateTime oldDateTime,
TimeZone zone,
ZoneResolver resolver) |
Obtains an instance of ZonedDateTime .
|
ZonedDateTime |
ZonedDateTime.with(DateAdjuster adjuster) |
Returns a copy of this ZonedDateTime with the date altered using the adjuster.
|
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) |
Returns a copy of this ZonedDateTime with the time altered using the adjuster.
|
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.withDate(int year,
int monthOfYear,
int dayOfMonth) |
Returns a copy of this ZonedDateTime with the date values altered.
|
ZonedDateTime |
ZonedDateTime.withDateTime(DateTimeProvider dateTimeProvider) |
Returns a copy of this ZonedDateTime with a different local date-time.
|
ZonedDateTime |
ZonedDateTime.withDayOfMonth(int dayOfMonth) |
Returns a copy of this ZonedDateTime with the day-of-month value altered.
|
ZonedDateTime |
ZonedDateTime.withDayOfYear(int dayOfYear) |
Returns a copy of this ZonedDateTime with the day-of-year altered.
|
ZonedDateTime |
ZonedDateTime.withEarlierOffsetAtOverlap() |
Returns a copy of this ZonedDateTime changing the zone offset to the
earlier of the two valid offsets at a local time-line overlap.
|
ZonedDateTime |
ZonedDateTime.withHourOfDay(int hourOfDay) |
Returns a copy of this ZonedDateTime with the hour-of-day value altered.
|
ZonedDateTime |
ZonedDateTime.withLaterOffsetAtOverlap() |
Returns a copy of this ZonedDateTime changing the zone offset to the
later of the two valid offsets at a local time-line overlap.
|
ZonedDateTime |
ZonedDateTime.withMinuteOfHour(int minuteOfHour) |
Returns a copy of this ZonedDateTime with the minute-of-hour value altered.
|
ZonedDateTime |
ZonedDateTime.withMonthOfYear(int monthOfYear) |
Returns a copy of this ZonedDateTime with the month-of-year value altered.
|
ZonedDateTime |
ZonedDateTime.withNanoOfSecond(int nanoOfSecond) |
Returns a copy of this ZonedDateTime with the nano-of-second value altered.
|
ZonedDateTime |
ZonedDateTime.withSecondOfMinute(int secondOfMinute) |
Returns a copy of this ZonedDateTime with the second-of-minute value altered.
|
ZonedDateTime |
ZonedDateTime.withTime(int hourOfDay,
int minuteOfHour) |
Returns a copy of this ZonedDateTime with the time values altered.
|
ZonedDateTime |
ZonedDateTime.withTime(int hourOfDay,
int minuteOfHour,
int secondOfMinute) |
Returns a copy of this ZonedDateTime with the time values altered.
|
ZonedDateTime |
ZonedDateTime.withTime(int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int nanoOfSecond) |
Returns a copy of this ZonedDateTime with the time values altered.
|
ZonedDateTime |
ZonedDateTime.withYear(int year) |
Returns a copy of this ZonedDateTime with the year value altered.
|
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.
|
ZonedDateTime |
Clock.zonedDateTime() |
Gets the current zoned date-time.
|
ZonedDateTime |
Clock.zonedDateTimeToMinute() |
Gets the current zoned date-time with a resolution of minutes.
|
ZonedDateTime |
Clock.zonedDateTimeToSecond() |
Gets the current zoned date-time with a resolution of seconds.
|