Uses of Class
javax.time.calendar.ZonedDateTime
Packages that use ZonedDateTime
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
-
Uses of ZonedDateTime in javax.time.calendar
Subclasses with type arguments of type ZonedDateTime in javax.time.calendarModifier and TypeClassDescription(package private) static final classRule implementation.Classes in javax.time.calendar that implement interfaces with type arguments of type ZonedDateTimeModifier and TypeClassDescriptionfinal classA date-time with a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00 Europe/Paris.Fields in javax.time.calendar with type parameters of type ZonedDateTimeModifier and TypeFieldDescriptionprivate static final CalendricalRule<ZonedDateTime> ZonedDateTime.Rule.INSTANCEMethods in javax.time.calendar that return ZonedDateTimeModifier and TypeMethodDescriptionLocalDate.atStartOfDayInZone(TimeZone zone) Returns a zoned date-time from this date at the earliest valid time according to the rules in the time-zone.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.Returns a zoned date-time formed from this date-time and the specified time-zone.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.OffsetDateTime.atZoneSameInstant(TimeZone zone) Returns a zoned date-time formed from the instant represented by this date-time and the specified time-zone.OffsetDateTime.atZoneSimilarLocal(TimeZone zone) Returns a zoned date-time formed from this date-time and the specified time-zone.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.minus(PeriodProvider periodProvider) Returns a copy of thisZonedDateTimewith the specified period subtracted.ZonedDateTime.minus(PeriodProvider periodProvider, ZoneResolver resolver) Returns a copy of thisZonedDateTimewith the specified period subtracted.ZonedDateTime.minusDays(long days) Returns a copy of thisZonedDateTimewith the specified period in days subtracted.ZonedDateTime.minusDuration(int hours, int minutes, int seconds, long nanos) Returns a copy of thisZonedDateTimewith the specified duration subtracted.ZonedDateTime.minusDuration(PeriodProvider periodProvider) Returns a copy of thisZonedDateTimewith the specified duration subtracted.ZonedDateTime.minusDuration(Duration duration) Returns a copy of thisZonedDateTimewith the specified duration subtracted.ZonedDateTime.minusHours(long hours) Returns a copy of thisZonedDateTimewith the specified period in hours subtracted.ZonedDateTime.minusMinutes(long minutes) Returns a copy of thisZonedDateTimewith the specified period in minutes subtracted.ZonedDateTime.minusMonths(long months) Returns a copy of thisZonedDateTimewith the specified period in months subtracted.ZonedDateTime.minusNanos(long nanos) Returns a copy of thisZonedDateTimewith the specified period in nanoseconds subtracted.ZonedDateTime.minusSeconds(long seconds) Returns a copy of thisZonedDateTimewith the specified period in seconds subtracted.ZonedDateTime.minusWeeks(long weeks) Returns a copy of thisZonedDateTimewith the specified period in weeks subtracted.ZonedDateTime.minusYears(long years) Returns a copy of thisZonedDateTimewith the specified period in years subtracted.static ZonedDateTimeZonedDateTime.now()Obtains the current date-time from the system clock in the default time-zone.static ZonedDateTimeObtains the current date-time from the specified clock.static ZonedDateTimeZonedDateTime.of(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, TimeZone zone) Obtains an instance ofZonedDateTimefrom year, month, day, hour, minute, second, nanosecond and time-zone where the date-time must be valid for the time-zone.static ZonedDateTimeZonedDateTime.of(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTimefrom year, month, day, hour, minute, second, nanosecond and time-zone providing a resolver to handle an invalid date-time.static ZonedDateTimeZonedDateTime.of(int year, MonthOfYear monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, TimeZone zone) Obtains an instance ofZonedDateTimefrom year, month, day, hour, minute, second, nanosecond and time-zone where the date-time must be valid for the time-zone.static ZonedDateTimeZonedDateTime.of(int year, MonthOfYear monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTimefrom year, month, day, hour, minute, second, nanosecond and time-zone providing a resolver to handle an invalid date-time.static ZonedDateTimeZonedDateTime.of(DateProvider dateProvider, TimeProvider timeProvider, TimeZone zone) Obtains an instance ofZonedDateTimefrom a local date and time where the date-time must be valid for the time-zone.static ZonedDateTimeZonedDateTime.of(DateProvider dateProvider, TimeProvider timeProvider, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTimefrom a local date and time providing a resolver to handle an invalid date-time.static ZonedDateTimeZonedDateTime.of(DateTimeProvider dateTimeProvider, TimeZone zone) Obtains an instance ofZonedDateTimefrom a local date-time where the date-time must be valid for the time-zone.static ZonedDateTimeZonedDateTime.of(DateTimeProvider dateTimeProvider, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTimefrom a local date-time providing a resolver to handle an invalid date-time.static ZonedDateTimeZonedDateTime.of(OffsetDateTime dateTime, TimeZone zone) Obtains an instance ofZonedDateTimefrom anOffsetDateTimeensuring that the offset provided is valid for the time-zone.static ZonedDateTimeZonedDateTime.ofEpochSeconds(long epochSeconds, TimeZone zone) Obtains an instance ofZonedDateTimeusing seconds from the epoch of 1970-01-01T00:00:00Z.static ZonedDateTimeZonedDateTime.ofInstant(OffsetDateTime dateTime, TimeZone zone) Obtains an instance ofZonedDateTimefrom the instant of anOffsetDateTime.static ZonedDateTimeZonedDateTime.ofInstant(InstantProvider instantProvider, TimeZone zone) Obtains an instance ofZonedDateTimefrom anInstant.static ZonedDateTimeObtains an instance ofZonedDateTimefrom a text string such as2007-12-03T10:15:30+01:00[Europe/Paris].static ZonedDateTimeZonedDateTime.parse(String text, DateTimeFormatter formatter) Obtains an instance ofZonedDateTimefrom a text string using a specific formatter.ZonedDateTime.plus(PeriodProvider periodProvider) Returns a copy of thisZonedDateTimewith the specified period added.ZonedDateTime.plus(PeriodProvider periodProvider, ZoneResolver resolver) Returns a copy of thisZonedDateTimewith the specified period added.ZonedDateTime.plusDays(long days) Returns a copy of thisZonedDateTimewith the specified period in days added.ZonedDateTime.plusDuration(int hours, int minutes, int seconds, long nanos) Returns a copy of thisZonedDateTimewith the specified duration added.ZonedDateTime.plusDuration(PeriodProvider periodProvider) Returns a copy of thisZonedDateTimewith the specified duration added.ZonedDateTime.plusDuration(Duration duration) Returns a copy of thisZonedDateTimewith the specified duration added.ZonedDateTime.plusHours(long hours) Returns a copy of thisZonedDateTimewith the specified period in hours added.ZonedDateTime.plusMinutes(long minutes) Returns a copy of thisZonedDateTimewith the specified period in minutes added.ZonedDateTime.plusMonths(long months) Returns a copy of thisZonedDateTimewith the specified period in months added.ZonedDateTime.plusNanos(long nanos) Returns a copy of thisZonedDateTimewith the specified period in nanoseconds added.ZonedDateTime.plusSeconds(long seconds) Returns a copy of thisZonedDateTimewith the specified period in seconds added.ZonedDateTime.plusWeeks(long weeks) Returns a copy of thisZonedDateTimewith the specified period in weeks added.ZonedDateTime.plusYears(long years) Returns a copy of thisZonedDateTimewith the specified period in years added.private static ZonedDateTimeZonedDateTime.resolve(LocalDateTime dateTime, ZonedDateTime oldDateTime, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTime.ZonedDateTime.with(DateAdjuster adjuster) Returns a copy of thisZonedDateTimewith the date altered using the adjuster.ZonedDateTime.with(DateAdjuster adjuster, ZoneResolver resolver) Returns a copy of thisZonedDateTimewith the date altered using the adjuster, providing a resolver to handle an invalid date-time.ZonedDateTime.with(TimeAdjuster adjuster) Returns a copy of thisZonedDateTimewith the time altered using the adjuster.ZonedDateTime.with(TimeAdjuster adjuster, ZoneResolver resolver) Returns a copy of thisZonedDateTimewith the time altered using the adjuster, providing a resolver to handle an invalid date-time.ZonedDateTime.withDate(int year, int monthOfYear, int dayOfMonth) Returns a copy of thisZonedDateTimewith the date values altered.ZonedDateTime.withDateTime(DateTimeProvider dateTimeProvider) Returns a copy of this ZonedDateTime with a different local date-time.ZonedDateTime.withDayOfMonth(int dayOfMonth) Returns a copy of thisZonedDateTimewith the day-of-month value altered.ZonedDateTime.withDayOfYear(int dayOfYear) Returns a copy of thisZonedDateTimewith the day-of-year altered.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.withHourOfDay(int hourOfDay) Returns a copy of thisZonedDateTimewith the hour-of-day value altered.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.withMinuteOfHour(int minuteOfHour) Returns a copy of thisZonedDateTimewith the minute-of-hour value altered.ZonedDateTime.withMonthOfYear(int monthOfYear) Returns a copy of thisZonedDateTimewith the month-of-year value altered.ZonedDateTime.withNanoOfSecond(int nanoOfSecond) Returns a copy of thisZonedDateTimewith the nano-of-second value altered.ZonedDateTime.withSecondOfMinute(int secondOfMinute) Returns a copy of thisZonedDateTimewith the second-of-minute value altered.ZonedDateTime.withTime(int hourOfDay, int minuteOfHour) Returns a copy of thisZonedDateTimewith the time values altered.ZonedDateTime.withTime(int hourOfDay, int minuteOfHour, int secondOfMinute) Returns a copy of thisZonedDateTimewith the time values altered.ZonedDateTime.withTime(int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond) Returns a copy of thisZonedDateTimewith the time values altered.ZonedDateTime.withYear(int year) Returns a copy of thisZonedDateTimewith the year value altered.ZonedDateTime.withZoneSameInstant(TimeZone zone) Returns a copy of this ZonedDateTime with a different time-zone, retaining the instant.ZonedDateTime.withZoneSameLocal(TimeZone zone) Returns a copy of this ZonedDateTime with a different time-zone, retaining the local date-time if possible.ZonedDateTime.withZoneSameLocal(TimeZone zone, ZoneResolver resolver) Returns a copy of this ZonedDateTime with a different time-zone, retaining the local date-time if possible.Clock.zonedDateTime()Gets the current zoned date-time.Clock.zonedDateTimeToMinute()Gets the current zoned date-time with a resolution of minutes.Clock.zonedDateTimeToSecond()Gets the current zoned date-time with a resolution of seconds.Methods in javax.time.calendar that return types with arguments of type ZonedDateTimeModifier and TypeMethodDescriptionstatic CalendricalRule<ZonedDateTime> ZonedDateTime.rule()Gets the rule forZonedDateTime.Methods in javax.time.calendar with parameters of type ZonedDateTimeModifier and TypeMethodDescriptionintZonedDateTime.compareTo(ZonedDateTime other) Compares thisZonedDateTimeto another date-time based on the UTC equivalent date-times then time-zone unique key.booleanZonedDateTime.equalInstant(ZonedDateTime other) Checks if the instant of this date-time is equal to that of the specified date-time.booleanZonedDateTime.isAfter(ZonedDateTime other) Checks if the instant of this date-time is after that of the specified date-time.booleanZonedDateTime.isBefore(ZonedDateTime other) Checks if the instant of this date-time is before that of the specified date-time.private static ZonedDateTimeZonedDateTime.resolve(LocalDateTime dateTime, ZonedDateTime oldDateTime, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTime.final OffsetDateTimeZoneResolver.resolve(TimeZone zone, LocalDateTime newDateTime, ZonedDateTime oldDateTime) Resolves the new local date-time to an offset date-time using the zone.