Uses of Class
javax.time.calendar.ZoneOffset
Packages that use ZoneOffset
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 ZoneOffset in javax.time.calendar
Subclasses with type arguments of type ZoneOffset 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 ZoneOffsetModifier and TypeClassDescriptionfinal classA time-zone offset from UTC, such as+02:00.Fields in javax.time.calendar declared as ZoneOffsetModifier and TypeFieldDescriptionprivate final ZoneOffsetOffsetDate.offsetThe zone offset.private final ZoneOffsetOffsetDateTime.offsetThe zone offset.private final ZoneOffsetOffsetTime.offsetThe zone offset from UTC, never null.static final ZoneOffsetZoneOffset.UTCThe time-zone offset for UTC, with an id of 'Z'.Fields in javax.time.calendar with type parameters of type ZoneOffsetModifier and TypeFieldDescriptionprivate static final Map<String, ZoneOffset> ZoneOffset.ID_CACHECache of time-zone offset by id.private static final CalendricalRule<ZoneOffset> ZoneOffset.Rule.INSTANCEprivate static final Map<Integer, ZoneOffset> ZoneOffset.SECONDS_CACHECache of time-zone offset by offset in seconds.Methods in javax.time.calendar that return ZoneOffsetModifier and TypeMethodDescriptionprotected ZoneOffsetZoneOffset.Rule.derive(Calendrical calendrical) OffsetDate.getOffset()Gets the zone offset.OffsetDateTime.getOffset()Gets the zone offset.OffsetTime.getOffset()Gets the zone offset representing how far ahead or behind UTC the time is.ZonedDateTime.getOffset()Gets the zone offset, such as '+01:00'.static ZoneOffsetObtains an instance ofZoneOffsetusing the id.static ZoneOffsetZoneOffset.of(PeriodProvider periodProvider) Obtains an instance ofZoneOffsetfrom a period.static ZoneOffsetZoneOffset.ofHours(int hours) Obtains an instance ofZoneOffsetusing an offset in hours.static ZoneOffsetZoneOffset.ofHoursMinutes(int hours, int minutes) Obtains an instance ofZoneOffsetusing an offset in hours and minutes.static ZoneOffsetZoneOffset.ofHoursMinutesSeconds(int hours, int minutes, int seconds) Obtains an instance ofZoneOffsetusing an offset in hours, minutes and seconds.static ZoneOffsetZoneOffset.ofTotalSeconds(int totalSeconds) Obtains an instance ofZoneOffsetspecifying the total offset in secondsZoneOffset.plus(PeriodProvider periodProvider) Returns a copy of this offset with the specified period added.Methods in javax.time.calendar that return types with arguments of type ZoneOffsetModifier and TypeMethodDescriptionstatic CalendricalRule<ZoneOffset> ZoneOffset.rule()Gets the rule for the zone-offset.Methods in javax.time.calendar with parameters of type ZoneOffsetModifier and TypeMethodDescriptionLocalDate.atOffset(ZoneOffset offset) Returns an offset date formed from this time and the specified offset.LocalDateTime.atOffset(ZoneOffset offset) Returns an offset date-time formed from this date-time and the specified offset.LocalTime.atOffset(ZoneOffset offset) Returns an offset time formed from this time and the specified offset.intZoneOffset.compareTo(ZoneOffset other) Compares this offset to another offset in descending order.static OffsetDateOffsetDate.of(int year, int monthOfYear, int dayOfMonth, ZoneOffset offset) Obtains an instance ofOffsetDatefrom a year, month and day.static OffsetDateOffsetDate.of(int year, MonthOfYear monthOfYear, int dayOfMonth, ZoneOffset offset) Obtains an instance ofOffsetDatefrom a year, month and day.static OffsetDateOffsetDate.of(DateProvider dateProvider, ZoneOffset offset) Obtains an instance ofOffsetDatefrom a date provider.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, 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 OffsetTimeOffsetTime.of(int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, ZoneOffset offset) Obtains an instance ofOffsetTimefrom an hour, minute, second and nanosecond.static OffsetTimeOffsetTime.of(int hourOfDay, int minuteOfHour, int secondOfMinute, ZoneOffset offset) Obtains an instance ofOffsetTimefrom an hour, minute and second.static OffsetTimeOffsetTime.of(int hourOfDay, int minuteOfHour, ZoneOffset offset) Obtains an instance ofOffsetTimefrom an hour and minute.static OffsetTimeOffsetTime.of(TimeProvider timeProvider, ZoneOffset offset) Obtains an instance ofOffsetTimefrom a time provider.static TimeZoneTimeZone.of(ZoneOffset offset) Obtains an instance ofTimeZonerepresenting a fixed time-zone.static OffsetDateTimeOffsetDateTime.ofEpochSeconds(long epochSeconds, ZoneOffset offset) Obtains an instance ofOffsetDateTimeusing seconds from the epoch of 1970-01-01T00:00:00Z.static OffsetDateOffsetDate.ofInstant(InstantProvider instantProvider, ZoneOffset offset) Obtains an instance ofOffsetDatefrom anInstantProvider.static OffsetDateTimeOffsetDateTime.ofInstant(InstantProvider instantProvider, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom anInstantProvider.static OffsetTimeOffsetTime.ofInstant(InstantProvider instantProvider, ZoneOffset offset) Obtains an instance ofOffsetTimefrom 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.private OffsetDateOffsetDate.with(LocalDate date, ZoneOffset offset) Returns a new date based on this one, returningthiswhere possible.private OffsetDateTimeOffsetDateTime.with(LocalDateTime dateTime, ZoneOffset offset) Returns a new date-time based on this one, returningthiswhere possible.OffsetDate.withOffset(ZoneOffset offset) Returns a copy of thisOffsetDatewith the specified offset.OffsetDateTime.withOffsetSameInstant(ZoneOffset offset) Returns a copy of thisOffsetDateTimewith the specified offset ensuring that the result is at the same instant.OffsetTime.withOffsetSameInstant(ZoneOffset offset) Returns a copy of thisOffsetTimewith the specified offset ensuring that the result is at the same instant on an implied day.OffsetDateTime.withOffsetSameLocal(ZoneOffset offset) Returns a copy of thisOffsetDateTimewith the specified offset ensuring that the result has the same local date-time.OffsetTime.withOffsetSameLocal(ZoneOffset offset) Returns a copy of thisOffsetTimewith the specified offset ensuring that the result has the same local time.Constructors in javax.time.calendar with parameters of type ZoneOffsetModifierConstructorDescription(package private)Fixed(ZoneOffset offset) Constructor.privateOffsetDate(LocalDate date, ZoneOffset offset) Constructor.privateOffsetDateTime(LocalDateTime dateTime, ZoneOffset offset) Constructor.privateOffsetTime(LocalTime time, ZoneOffset offset) Constructor. -
Uses of ZoneOffset in javax.time.calendar.zone
Fields in javax.time.calendar.zone declared as ZoneOffsetModifier and TypeFieldDescriptionprivate final ZoneOffsetFixedZoneRules.offsetThe fixed offset.private final ZoneOffsetZoneOffsetInfo.offsetThe offset for the local time-line.private final ZoneOffsetZoneOffsetTransitionRule.offsetAfterThe offset after the cutover.private final ZoneOffsetZoneOffsetTransitionRule.offsetBeforeThe offset before the cutover.(package private) ZoneOffsetTZDBZoneRulesCompiler.TZDBZone.standardOffsetThe standard offset.private final ZoneOffsetZoneOffsetTransitionRule.standardOffsetThe standard offset at the cutover.private final ZoneOffsetZoneRulesBuilder.TZWindow.standardOffsetThe standard offset during the window, not null.private final ZoneOffset[]StandardZoneRules.standardOffsetsThe standard offsets.private final ZoneOffset[]StandardZoneRules.wallOffsetsThe wall offsets.Methods in javax.time.calendar.zone that return ZoneOffsetModifier and TypeMethodDescriptionZoneOffsetInfo.getEstimatedOffset()Gets an estimated offset for the local date-time.FixedZoneRules.getOffset(InstantProvider instant) Gets the offset applicable at the specified instant in this zone.StandardZoneRules.getOffset(InstantProvider instantProvider) Gets the offset applicable at the specified instant in this zone.ZoneOffsetInfo.getOffset()Gets the offset applicable at this point on the local time-line.abstract ZoneOffsetZoneRules.getOffset(InstantProvider instant) Gets the offset applicable at the specified instant in this zone.ZoneOffsetTransition.getOffsetAfter()Gets the offset after the transition.ZoneOffsetTransitionRule.getOffsetAfter()Gets the offset after the transition.ZoneOffsetTransition.getOffsetBefore()Gets the offset before the transition.ZoneOffsetTransitionRule.getOffsetBefore()Gets the offset before the transition.FixedZoneRules.getStandardOffset(InstantProvider instant) Gets the standard offset for the specified instant in this zone.StandardZoneRules.getStandardOffset(InstantProvider instantProvider) Gets the standard offset for the specified instant in this zone.ZoneOffsetTransitionRule.getStandardOffset()Gets the standard offset in force at the transition.abstract ZoneOffsetZoneRules.getStandardOffset(InstantProvider instantProvider) Gets the standard offset for the specified instant in this zone.private ZoneOffsetTZDBZoneRulesCompiler.parseOffset(String str) (package private) static ZoneOffsetSer.readOffset(DataInput in) Reads the state from the stream.Methods in javax.time.calendar.zone with parameters of type ZoneOffsetModifier and TypeMethodDescriptionZoneRulesBuilder.addWindow(ZoneOffset standardOffset, LocalDateTime until, ZoneRulesBuilder.TimeDefinition untilDefinition) Adds a window to the builder that can be used to filter a set of rules.ZoneRulesBuilder.addWindowForever(ZoneOffset standardOffset) Adds a window that applies until the end of time to the builder that can be used to filter a set of rules.ZoneRulesBuilder.TimeDefinition.createDateTime(LocalDateTime dateTime, ZoneOffset standardOffset, ZoneOffset wallOffset) Creates the offset date-time from the specified local date-time.booleanZoneOffsetInfo.isValidOffset(ZoneOffset offset) Checks if the specified offset is valid for this date-time.booleanZoneOffsetTransition.isValidOffset(ZoneOffset offset) Checks if the specified offset is valid during this transition.static ZoneOffsetInfoZoneOffsetInfo.of(LocalDateTime dateTime, ZoneOffset offset, ZoneOffsetTransition transition) Creates an instance representing a simple single offset or a transition.static ZoneOffsetTransitionZoneOffsetTransition.of(OffsetDateTime transition, ZoneOffset offsetAfter) Obtains an instance defining a transition between two offsets.static ZoneOffsetTransitionRuleZoneOffsetTransitionRule.of(MonthOfYear month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneRulesBuilder.TimeDefinition timeDefnition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter) Creates an instance defining the yearly rule to create transitions between two offsets.static ZoneRulesZoneRules.ofFixed(ZoneOffset offset) Obtains a rules instance for a specific offset.(package private) ZoneOffsetTransitionZoneRulesBuilder.TZRule.toTransition(ZoneOffset standardOffset, Period savingsBefore) Converts this to a transition.(package private) ZoneOffsetTransitionRuleZoneRulesBuilder.TZRule.toTransitionRule(ZoneOffset standardOffset, Period savingsBefore) Converts this to a transition rule.(package private) static voidSer.writeOffset(ZoneOffset offset, DataOutput out) Writes the state to the stream.Constructors in javax.time.calendar.zone with parameters of type ZoneOffsetModifierConstructorDescription(package private)FixedZoneRules(ZoneOffset offset) Constructor.privateStandardZoneRules(long[] standardTransitions, ZoneOffset[] standardOffsets, long[] savingsInstantTransitions, ZoneOffset[] wallOffsets, ZoneOffsetTransitionRule[] lastRules) Constructor.(package private)StandardZoneRules(ZoneOffset baseStandardOffset, ZoneOffset baseWallOffset, List<OffsetDateTime> standardOffsetTransitionList, List<ZoneOffsetTransition> transitionList, List<ZoneOffsetTransitionRule> lastRules) Constructor.(package private)TZWindow(ZoneOffset standardOffset, LocalDateTime windowEnd, ZoneRulesBuilder.TimeDefinition timeDefinition) Constructor.(package private)ZoneOffsetInfo(LocalDateTime dateTime, ZoneOffset offset, ZoneOffsetTransition transition) Creates an instance handling a simple single offset.(package private)ZoneOffsetTransition(OffsetDateTime transition, ZoneOffset offsetAfter) Creates an instance defining a transition between two offsets.ZoneOffsetTransitionRule(MonthOfYear month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneRulesBuilder.TimeDefinition timeDefnition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter) Creates an instance defining the yearly rule to create transitions between two offsets.