Uses of Class
javax.time.calendar.OffsetDateTime
Packages that use OffsetDateTime
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
Provides classes to implement time-zones and their rules.
-
Uses of OffsetDateTime in javax.time.calendar
Subclasses with type arguments of type OffsetDateTime 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 OffsetDateTimeModifier and TypeClassDescriptionfinal classA date-time with a zone offset from UTC in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00.Fields in javax.time.calendar declared as OffsetDateTimeModifier and TypeFieldDescriptionprivate final OffsetDateTimeZonedDateTime.dateTimeThe offset date-time.Fields in javax.time.calendar with type parameters of type OffsetDateTimeModifier and TypeFieldDescriptionprivate static final CalendricalRule<OffsetDateTime> OffsetDateTime.Rule.INSTANCEMethods in javax.time.calendar that return OffsetDateTimeModifier and TypeMethodDescriptionOffsetDate.atMidnight()Returns an offset date-time formed from this date at the time of midnight.LocalDateTime.atOffset(ZoneOffset offset) Returns an offset date-time formed from this date-time and the specified offset.LocalDate.atTime(OffsetTime offsetTime) Returns a local date-time formed from this date at the specified offset time.OffsetDate.atTime(int hourOfDay, int minuteOfHour) Returns an offset date-time formed from this date at the specified time.OffsetDate.atTime(int hourOfDay, int minuteOfHour, int secondOfMinute) Returns an offset date-time formed from this date at the specified time.OffsetDate.atTime(int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond) Returns an offset date-time formed from this date at the specified time.Returns an offset date-time formed from this date at the specified time.OffsetDate.atTime(OffsetTime time) Returns an offset date-time formed from this date at the specified time.protected OffsetDateTimeOffsetDateTime.Rule.derive(Calendrical calendrical) protected abstract OffsetDateTimeZoneResolver.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 OffsetDateTimeZoneResolvers.Combination.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolvers.PostGapPreOverlap.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolvers.PostTransition.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolvers.PreTransition.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolvers.PushForward.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolvers.RetainOffset.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolvers.Strict.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolver.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.protected OffsetDateTimeZoneResolvers.Combination.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.protected OffsetDateTimeZoneResolvers.PostGapPreOverlap.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.protected OffsetDateTimeZoneResolvers.PostTransition.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.protected OffsetDateTimeZoneResolvers.PreTransition.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.protected OffsetDateTimeZoneResolvers.PushForward.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.protected OffsetDateTimeZoneResolvers.RetainOffset.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.protected OffsetDateTimeZoneResolvers.Strict.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.OffsetDateTime.minus(PeriodProvider periodProvider) Returns a copy of thisOffsetDateTimewith the specified period subtracted.Returns a copy of thisOffsetDateTimewith the specified duration subtracted.OffsetDateTime.minusDays(long days) Returns a copy of thisOffsetDateTimewith the specified period in days subtracted.OffsetDateTime.minusHours(long hours) Returns a copy of thisOffsetDateTimewith the specified period in hours subtracted.OffsetDateTime.minusMinutes(long minutes) Returns a copy of thisOffsetDateTimewith the specified period in minutes subtracted.OffsetDateTime.minusMonths(long months) Returns a copy of thisOffsetDateTimewith the specified period in months subtracted.OffsetDateTime.minusMonths(long months, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the specified period in months subtracted.OffsetDateTime.minusNanos(long nanos) Returns a copy of thisOffsetDateTimewith the specified period in nanoseconds subtracted.OffsetDateTime.minusSeconds(long seconds) Returns a copy of thisOffsetDateTimewith the specified period in seconds subtracted.OffsetDateTime.minusWeeks(long weeks) Returns a copy of thisOffsetDateTimewith the specified period in weeks subtracted.OffsetDateTime.minusYears(long years) Returns a copy of thisOffsetDateTimewith the specified period in years subtracted.OffsetDateTime.minusYears(long years, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the specified period in years subtracted.static OffsetDateTimeOffsetDateTime.now()Obtains the current date-time from the system clock in the default time-zone.static OffsetDateTimeObtains the current date-time from the specified clock.static OffsetDateTimeOffsetDateTime.of(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom year, month, day, hour, minute, second and nanosecond.static OffsetDateTimeOffsetDateTime.of(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom year, month, day, hour, minute and second, setting the nanosecond to zero.static OffsetDateTimeOffsetDateTime.of(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom year, month, day, hour and minute, setting the second and nanosecond to zero.static OffsetDateTimeOffsetDateTime.of(int year, MonthOfYear monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom year, month, day, hour, minute, second and nanosecond.static OffsetDateTimeOffsetDateTime.of(int year, MonthOfYear monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom year, month, day, hour, minute and second, setting the nanosecond to zero.static OffsetDateTimeOffsetDateTime.of(int year, MonthOfYear monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom year, month, day, hour and minute, setting the second and nanosecond to zero.static OffsetDateTimeOffsetDateTime.of(DateProvider dateProvider, OffsetTime offsetTime) Obtains an instance ofOffsetDateTimefrom aDateProviderandOffsetTime.static OffsetDateTimeOffsetDateTime.of(DateProvider dateProvider, TimeProvider timeProvider, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom a date, time and zone offset.static OffsetDateTimeOffsetDateTime.of(DateTimeProvider dateTimeProvider, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom a date-time provider.static OffsetDateTimeOffsetDateTime.ofEpochSeconds(long epochSeconds, ZoneOffset offset) Obtains an instance ofOffsetDateTimeusing seconds from the epoch of 1970-01-01T00:00:00Z.Clock.offsetDateTime()Gets the current offset date-time with maximum resolution of up to nanoseconds.Clock.offsetDateTimeToMinute()Gets the current offset date-time with a resolution of minutes.Clock.offsetDateTimeToSecond()Gets the current offset date-time with a resolution of seconds.static OffsetDateTimeOffsetDateTime.ofInstant(InstantProvider instantProvider, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom anInstantProvider.static OffsetDateTimeOffsetDateTime.ofMidnight(int year, int monthOfYear, int dayOfMonth, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom year, month and day with the time set to midnight at the start of day.static OffsetDateTimeOffsetDateTime.ofMidnight(int year, MonthOfYear monthOfYear, int dayOfMonth, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom year, month and day with the time set to midnight at the start of day.static OffsetDateTimeOffsetDateTime.ofMidnight(DateProvider dateProvider, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom a date with the time set to midnight at the start of day.static OffsetDateTimeObtains an instance ofOffsetDateTimefrom a text string such as2007-12-03T10:15:30+01:00.static OffsetDateTimeOffsetDateTime.parse(String text, DateTimeFormatter formatter) Obtains an instance ofOffsetDateTimefrom a text string using a specific formatter.OffsetDateTime.plus(PeriodProvider periodProvider) Returns a copy of thisOffsetDateTimewith the specified period added.Returns a copy of thisOffsetDateTimewith the specified duration added.OffsetDateTime.plusDays(long days) Returns a copy of this OffsetDateTime with the specified period in days added.OffsetDateTime.plusHours(long hours) Returns a copy of thisOffsetDateTimewith the specified period in hours added.OffsetDateTime.plusMinutes(long minutes) Returns a copy of thisOffsetDateTimewith the specified period in minutes added.OffsetDateTime.plusMonths(long months) Returns a copy of thisOffsetDateTimewith the specified period in months added.OffsetDateTime.plusMonths(long months, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the specified period in months added.OffsetDateTime.plusNanos(long nanos) Returns a copy of thisOffsetDateTimewith the specified period in nanoseconds added.OffsetDateTime.plusSeconds(long seconds) Returns a copy of thisOffsetDateTimewith the specified period in seconds added.OffsetDateTime.plusWeeks(long weeks) Returns a copy of this OffsetDateTime with the specified period in weeks added.OffsetDateTime.plusYears(long years) Returns a copy of thisOffsetDateTimewith the specified period in years added.OffsetDateTime.plusYears(long years, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the specified period in years added.final OffsetDateTimeZoneResolver.resolve(TimeZone zone, LocalDateTime newDateTime, ZonedDateTime oldDateTime) Resolves the new local date-time to an offset date-time using the zone.ZonedDateTime.toOffsetDateTime()Converts thisZonedDateTimeto aOffsetDateTime.OffsetDateTime.with(DateAdjuster adjuster) Returns a copy of this OffsetDateTime with the date altered using the adjuster.private OffsetDateTimeOffsetDateTime.with(LocalDateTime dateTime, ZoneOffset offset) Returns a new date-time based on this one, returningthiswhere possible.OffsetDateTime.with(MonthOfYear monthOfYear) Returns a copy of thisOffsetDateTimewith the month-of-year altered.OffsetDateTime.with(MonthOfYear monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the month-of-year altered.OffsetDateTime.with(TimeAdjuster adjuster) Returns a copy of this OffsetDateTime with the time altered using the adjuster.OffsetDateTime.withDate(int year, int monthOfYear, int dayOfMonth) Returns a copy of thisOffsetDateTimewith the date values altered.OffsetDateTime.withDate(int year, MonthOfYear monthOfYear, int dayOfMonth) Returns a copy of thisOffsetDateTimewith the date values altered.OffsetDateTime.withDateTime(DateTimeProvider dateTimeProvider) Returns a copy of thisOffsetDateTimewith the time altered and the offset retained.OffsetDateTime.withDayOfMonth(int dayOfMonth) Returns a copy of thisOffsetDateTimewith the day-of-month altered.OffsetDateTime.withDayOfMonth(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the day-of-month altered.OffsetDateTime.withDayOfYear(int dayOfYear) Returns a copy of thisOffsetDateTimewith the day-of-year altered.OffsetDateTime.withHourOfDay(int hourOfDay) Returns a copy of thisOffsetDateTimewith the hour-of-day value altered.OffsetDateTime.withMinuteOfHour(int minuteOfHour) Returns a copy of thisOffsetDateTimewith the minute-of-hour value altered.OffsetDateTime.withMonthOfYear(int monthOfYear) Returns a copy of thisOffsetDateTimewith the month-of-year altered.OffsetDateTime.withMonthOfYear(int monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the month-of-year altered.OffsetDateTime.withNanoOfSecond(int nanoOfSecond) Returns a copy of thisOffsetDateTimewith the nano-of-second value altered.OffsetDateTime.withOffsetSameInstant(ZoneOffset offset) Returns a copy of thisOffsetDateTimewith the specified offset ensuring that the result is at the same instant.OffsetDateTime.withOffsetSameLocal(ZoneOffset offset) Returns a copy of thisOffsetDateTimewith the specified offset ensuring that the result has the same local date-time.OffsetDateTime.withSecondOfMinute(int secondOfMinute) Returns a copy of thisOffsetDateTimewith the second-of-minute value altered.OffsetDateTime.withTime(int hourOfDay, int minuteOfHour) Returns a copy of thisOffsetDateTimewith the time values altered.OffsetDateTime.withTime(int hourOfDay, int minuteOfHour, int secondOfMinute) Returns a copy of thisOffsetDateTimewith the time values altered.OffsetDateTime.withTime(int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond) Returns a copy of this OffsetDateTime with the time values altered.OffsetDateTime.withYear(int year) Returns a copy of thisOffsetDateTimewith the year altered.OffsetDateTime.withYear(int year, DateResolver dateResolver) Returns a copy of thisOffsetDateTimewith the year altered.Methods in javax.time.calendar that return types with arguments of type OffsetDateTimeModifier and TypeMethodDescriptionstatic CalendricalRule<OffsetDateTime> OffsetDateTime.rule()Gets the rule forOffsetDateTime.Methods in javax.time.calendar with parameters of type OffsetDateTimeModifier and TypeMethodDescriptionintOffsetDateTime.compareTo(OffsetDateTime other) Compares thisOffsetDateTimeto another date-time.booleanOffsetDateTime.equalInstant(OffsetDateTime other) Checks if the instant of thisOffsetDateTimeis equal to that of the specified date-time.TimeZone.Fixed.getRulesValidFor(OffsetDateTime dateTime) abstract ZoneRulesTimeZone.getRulesValidFor(OffsetDateTime dateTime) Gets the time-zone rules allowing calculations to be performed, ensuring that the date-time and offset specified is valid for the returned rules.TimeZone.ID.getRulesValidFor(OffsetDateTime dateTime) protected abstract OffsetDateTimeZoneResolver.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 OffsetDateTimeZoneResolvers.Combination.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolvers.PostGapPreOverlap.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolvers.PostTransition.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolvers.PreTransition.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolvers.PushForward.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolvers.RetainOffset.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolvers.Strict.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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 OffsetDateTimeZoneResolver.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.protected OffsetDateTimeZoneResolvers.Combination.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.protected OffsetDateTimeZoneResolvers.PostGapPreOverlap.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.protected OffsetDateTimeZoneResolvers.PostTransition.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.protected OffsetDateTimeZoneResolvers.PreTransition.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.protected OffsetDateTimeZoneResolvers.PushForward.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.protected OffsetDateTimeZoneResolvers.RetainOffset.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.protected OffsetDateTimeZoneResolvers.Strict.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, 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.booleanOffsetDateTime.isAfter(OffsetDateTime other) Checks if the instant of thisOffsetDateTimeis after that of the specified date-time.booleanOffsetDateTime.isBefore(OffsetDateTime other) Checks if the instant of thisOffsetDateTimeis before that of the specified date-time.booleanTimeZone.Fixed.isValidFor(OffsetDateTime dateTime) booleanTimeZone.ID.isValidFor(OffsetDateTime dateTime) abstract booleanTimeZone.isValidFor(OffsetDateTime dateTime) Checks if this time-zone is valid such that rules can be obtained for it which are valid for the specified date-time and offset.static ZonedDateTimeZonedDateTime.of(OffsetDateTime dateTime, TimeZone zone) Obtains an instance ofZonedDateTimefrom anOffsetDateTimeensuring that the offset provided is valid for the time-zone.static ZonedDateTimeZonedDateTime.ofInstant(OffsetDateTime dateTime, TimeZone zone) Obtains an instance ofZonedDateTimefrom the instant of anOffsetDateTime.TimeZone.Fixed.withLatestVersionValidFor(OffsetDateTime dateTime) TimeZone.ID.withLatestVersionValidFor(OffsetDateTime dateTime) abstract TimeZoneTimeZone.withLatestVersionValidFor(OffsetDateTime dateTime) Returns a copy of this time-zone with the latest version that is valid for the specified date-time and offset.Constructors in javax.time.calendar with parameters of type OffsetDateTimeModifierConstructorDescriptionprivateZonedDateTime(OffsetDateTime dateTime, TimeZone zone) Constructor. -
Uses of OffsetDateTime in javax.time.calendar.zone
Fields in javax.time.calendar.zone declared as OffsetDateTimeModifier and TypeFieldDescriptionprivate final OffsetDateTimeZoneOffsetTransition.transitionThe transition date-time with the offset before the transition.private final OffsetDateTimeZoneOffsetTransition.transitionAfterThe transition date-time with the offset after the transition.Methods in javax.time.calendar.zone that return OffsetDateTimeModifier and TypeMethodDescriptionZoneRulesBuilder.TimeDefinition.createDateTime(LocalDateTime dateTime, ZoneOffset standardOffset, ZoneOffset wallOffset) Creates the offset date-time from the specified local date-time.(package private) OffsetDateTimeZoneRulesBuilder.TZWindow.createDateTime(Period savings) Creates the offset date-time for the local date-time at the end of the window.ZoneOffsetTransition.getDateTimeAfter()Gets the transition date-time expressed with the 'after' offset.ZoneOffsetTransition.getDateTimeBefore()Gets the transition instant date-time expressed with the 'before' offset.Methods in javax.time.calendar.zone with parameters of type OffsetDateTimeModifier and TypeMethodDescriptionZoneRulesGroup.getLatestVersionIDValidFor(String regionID, OffsetDateTime dateTime) Finds the latest version ID that is valid forZoneRulesGroup.getRulesValidFor(String regionID, String versionID, OffsetDateTime dateTime) Gets the rules for the specified region and version ensuring that the rules are valid for the date-time.booleanZoneRules.isValidDateTime(OffsetDateTime dateTime) Checks if the offset date-time is valid for these rules.static ZoneOffsetTransitionZoneOffsetTransition.of(OffsetDateTime transition, ZoneOffset offsetAfter) Obtains an instance defining a transition between two offsets.Constructors in javax.time.calendar.zone with parameters of type OffsetDateTimeModifierConstructorDescription(package private)ZoneOffsetTransition(OffsetDateTime transition, ZoneOffset offsetAfter) Creates an instance defining a transition between two offsets.Constructor parameters in javax.time.calendar.zone with type arguments of type OffsetDateTimeModifierConstructorDescription(package private)StandardZoneRules(ZoneOffset baseStandardOffset, ZoneOffset baseWallOffset, List<OffsetDateTime> standardOffsetTransitionList, List<ZoneOffsetTransition> transitionList, List<ZoneOffsetTransitionRule> lastRules) Constructor.