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
Fields in javax.time.calendar declared as OffsetDateTimeModifier and TypeFieldDescriptionprivate final OffsetDateTime
ZonedDateTime.dateTime
The offset date-time.Fields in javax.time.calendar with type parameters of type OffsetDateTimeModifier and TypeFieldDescriptionprivate static final CalendricalRule
<OffsetDateTime> OffsetDateTime.Rule.INSTANCE
Methods 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 OffsetDateTime
OffsetDateTime.Rule.derive
(Calendrical calendrical) 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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 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.protected OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 thisOffsetDateTime
with the specified period subtracted.Returns a copy of thisOffsetDateTime
with the specified duration subtracted.OffsetDateTime.minusDays
(long days) Returns a copy of thisOffsetDateTime
with the specified period in days subtracted.OffsetDateTime.minusHours
(long hours) Returns a copy of thisOffsetDateTime
with the specified period in hours subtracted.OffsetDateTime.minusMinutes
(long minutes) Returns a copy of thisOffsetDateTime
with the specified period in minutes subtracted.OffsetDateTime.minusMonths
(long months) Returns a copy of thisOffsetDateTime
with the specified period in months subtracted.OffsetDateTime.minusMonths
(long months, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the specified period in months subtracted.OffsetDateTime.minusNanos
(long nanos) Returns a copy of thisOffsetDateTime
with the specified period in nanoseconds subtracted.OffsetDateTime.minusSeconds
(long seconds) Returns a copy of thisOffsetDateTime
with the specified period in seconds subtracted.OffsetDateTime.minusWeeks
(long weeks) Returns a copy of thisOffsetDateTime
with the specified period in weeks subtracted.OffsetDateTime.minusYears
(long years) Returns a copy of thisOffsetDateTime
with the specified period in years subtracted.OffsetDateTime.minusYears
(long years, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the specified period in years subtracted.static OffsetDateTime
OffsetDateTime.now()
Obtains the current date-time from the system clock in the default time-zone.static OffsetDateTime
Obtains the current date-time from the specified clock.static OffsetDateTime
OffsetDateTime.of
(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from year, month, day, hour, minute, second and nanosecond.static OffsetDateTime
OffsetDateTime.of
(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from year, month, day, hour, minute and second, setting the nanosecond to zero.static OffsetDateTime
OffsetDateTime.of
(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from year, month, day, hour and minute, setting the second and nanosecond to zero.static OffsetDateTime
OffsetDateTime.of
(int year, MonthOfYear monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from year, month, day, hour, minute, second and nanosecond.static OffsetDateTime
OffsetDateTime.of
(int year, MonthOfYear monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from year, month, day, hour, minute and second, setting the nanosecond to zero.static OffsetDateTime
OffsetDateTime.of
(int year, MonthOfYear monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from year, month, day, hour and minute, setting the second and nanosecond to zero.static OffsetDateTime
OffsetDateTime.of
(DateProvider dateProvider, OffsetTime offsetTime) Obtains an instance ofOffsetDateTime
from aDateProvider
andOffsetTime
.static OffsetDateTime
OffsetDateTime.of
(DateProvider dateProvider, TimeProvider timeProvider, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from a date, time and zone offset.static OffsetDateTime
OffsetDateTime.of
(DateTimeProvider dateTimeProvider, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from a date-time provider.static OffsetDateTime
OffsetDateTime.ofEpochSeconds
(long epochSeconds, ZoneOffset offset) Obtains an instance ofOffsetDateTime
using 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 OffsetDateTime
OffsetDateTime.ofInstant
(InstantProvider instantProvider, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from anInstantProvider
.static OffsetDateTime
OffsetDateTime.ofMidnight
(int year, int monthOfYear, int dayOfMonth, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from year, month and day with the time set to midnight at the start of day.static OffsetDateTime
OffsetDateTime.ofMidnight
(int year, MonthOfYear monthOfYear, int dayOfMonth, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from year, month and day with the time set to midnight at the start of day.static OffsetDateTime
OffsetDateTime.ofMidnight
(DateProvider dateProvider, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from a date with the time set to midnight at the start of day.static OffsetDateTime
Obtains an instance ofOffsetDateTime
from a text string such as2007-12-03T10:15:30+01:00
.static OffsetDateTime
OffsetDateTime.parse
(String text, DateTimeFormatter formatter) Obtains an instance ofOffsetDateTime
from a text string using a specific formatter.OffsetDateTime.plus
(PeriodProvider periodProvider) Returns a copy of thisOffsetDateTime
with the specified period added.Returns a copy of thisOffsetDateTime
with 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 thisOffsetDateTime
with the specified period in hours added.OffsetDateTime.plusMinutes
(long minutes) Returns a copy of thisOffsetDateTime
with the specified period in minutes added.OffsetDateTime.plusMonths
(long months) Returns a copy of thisOffsetDateTime
with the specified period in months added.OffsetDateTime.plusMonths
(long months, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the specified period in months added.OffsetDateTime.plusNanos
(long nanos) Returns a copy of thisOffsetDateTime
with the specified period in nanoseconds added.OffsetDateTime.plusSeconds
(long seconds) Returns a copy of thisOffsetDateTime
with 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 thisOffsetDateTime
with the specified period in years added.OffsetDateTime.plusYears
(long years, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the specified period in years added.final OffsetDateTime
ZoneResolver.resolve
(TimeZone zone, LocalDateTime newDateTime, ZonedDateTime oldDateTime) Resolves the new local date-time to an offset date-time using the zone.ZonedDateTime.toOffsetDateTime()
Converts thisZonedDateTime
to aOffsetDateTime
.OffsetDateTime.with
(DateAdjuster adjuster) Returns a copy of this OffsetDateTime with the date altered using the adjuster.private OffsetDateTime
OffsetDateTime.with
(LocalDateTime dateTime, ZoneOffset offset) Returns a new date-time based on this one, returningthis
where possible.OffsetDateTime.with
(MonthOfYear monthOfYear) Returns a copy of thisOffsetDateTime
with the month-of-year altered.OffsetDateTime.with
(MonthOfYear monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with 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 thisOffsetDateTime
with the date values altered.OffsetDateTime.withDate
(int year, MonthOfYear monthOfYear, int dayOfMonth) Returns a copy of thisOffsetDateTime
with the date values altered.OffsetDateTime.withDateTime
(DateTimeProvider dateTimeProvider) Returns a copy of thisOffsetDateTime
with the time altered and the offset retained.OffsetDateTime.withDayOfMonth
(int dayOfMonth) Returns a copy of thisOffsetDateTime
with the day-of-month altered.OffsetDateTime.withDayOfMonth
(int dayOfMonth, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the day-of-month altered.OffsetDateTime.withDayOfYear
(int dayOfYear) Returns a copy of thisOffsetDateTime
with the day-of-year altered.OffsetDateTime.withHourOfDay
(int hourOfDay) Returns a copy of thisOffsetDateTime
with the hour-of-day value altered.OffsetDateTime.withMinuteOfHour
(int minuteOfHour) Returns a copy of thisOffsetDateTime
with the minute-of-hour value altered.OffsetDateTime.withMonthOfYear
(int monthOfYear) Returns a copy of thisOffsetDateTime
with the month-of-year altered.OffsetDateTime.withMonthOfYear
(int monthOfYear, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with the month-of-year altered.OffsetDateTime.withNanoOfSecond
(int nanoOfSecond) Returns a copy of thisOffsetDateTime
with the nano-of-second value altered.OffsetDateTime.withOffsetSameInstant
(ZoneOffset offset) Returns a copy of thisOffsetDateTime
with the specified offset ensuring that the result is at the same instant.OffsetDateTime.withOffsetSameLocal
(ZoneOffset offset) Returns a copy of thisOffsetDateTime
with the specified offset ensuring that the result has the same local date-time.OffsetDateTime.withSecondOfMinute
(int secondOfMinute) Returns a copy of thisOffsetDateTime
with the second-of-minute value altered.OffsetDateTime.withTime
(int hourOfDay, int minuteOfHour) Returns a copy of thisOffsetDateTime
with the time values altered.OffsetDateTime.withTime
(int hourOfDay, int minuteOfHour, int secondOfMinute) Returns a copy of thisOffsetDateTime
with 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 thisOffsetDateTime
with the year altered.OffsetDateTime.withYear
(int year, DateResolver dateResolver) Returns a copy of thisOffsetDateTime
with 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 TypeMethodDescriptionint
OffsetDateTime.compareTo
(OffsetDateTime other) Compares thisOffsetDateTime
to another date-time.boolean
OffsetDateTime.equalInstant
(OffsetDateTime other) Checks if the instant of thisOffsetDateTime
is equal to that of the specified date-time.TimeZone.Fixed.getRulesValidFor
(OffsetDateTime dateTime) abstract ZoneRules
TimeZone.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 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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 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.protected OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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.boolean
OffsetDateTime.isAfter
(OffsetDateTime other) Checks if the instant of thisOffsetDateTime
is after that of the specified date-time.boolean
OffsetDateTime.isBefore
(OffsetDateTime other) Checks if the instant of thisOffsetDateTime
is before that of the specified date-time.boolean
TimeZone.Fixed.isValidFor
(OffsetDateTime dateTime) boolean
TimeZone.ID.isValidFor
(OffsetDateTime dateTime) abstract boolean
TimeZone.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 ZonedDateTime
ZonedDateTime.of
(OffsetDateTime dateTime, TimeZone zone) Obtains an instance ofZonedDateTime
from anOffsetDateTime
ensuring that the offset provided is valid for the time-zone.static ZonedDateTime
ZonedDateTime.ofInstant
(OffsetDateTime dateTime, TimeZone zone) Obtains an instance ofZonedDateTime
from the instant of anOffsetDateTime
.TimeZone.Fixed.withLatestVersionValidFor
(OffsetDateTime dateTime) TimeZone.ID.withLatestVersionValidFor
(OffsetDateTime dateTime) abstract TimeZone
TimeZone.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 OffsetDateTimeModifierConstructorDescriptionprivate
ZonedDateTime
(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 OffsetDateTime
ZoneOffsetTransition.transition
The transition date-time with the offset before the transition.private final OffsetDateTime
ZoneOffsetTransition.transitionAfter
The 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) OffsetDateTime
ZoneRulesBuilder.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.boolean
ZoneRules.isValidDateTime
(OffsetDateTime dateTime) Checks if the offset date-time is valid for these rules.static ZoneOffsetTransition
ZoneOffsetTransition.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.