Uses of Class
javax.time.calendar.ZoneOffset
-
Packages that use ZoneOffset Package Description javax.time.calendar Provides classes to manage the human time scale including date, time, date-time and time-zone representations.javax.time.calendar.zone Provides classes to implement time-zones and their rules. -
-
Uses of ZoneOffset in javax.time.calendar
Fields in javax.time.calendar declared as ZoneOffset Modifier and Type Field Description private ZoneOffsetOffsetDate. offsetThe zone offset.private ZoneOffsetOffsetDateTime. offsetThe zone offset.private ZoneOffsetOffsetTime. offsetThe zone offset from UTC, never null.static ZoneOffsetZoneOffset. UTCThe time-zone offset for UTC, with an id of 'Z'.Fields in javax.time.calendar with type parameters of type ZoneOffset Modifier and Type Field Description private static java.util.Map<java.lang.String,ZoneOffset>ZoneOffset. ID_CACHECache of time-zone offset by id.private static CalendricalRule<ZoneOffset>ZoneOffset.Rule. INSTANCEprivate static java.util.Map<java.lang.Integer,ZoneOffset>ZoneOffset. SECONDS_CACHECache of time-zone offset by offset in seconds.Methods in javax.time.calendar that return ZoneOffset Modifier and Type Method Description protected ZoneOffsetZoneOffset.Rule. derive(Calendrical calendrical)ZoneOffsetOffsetDate. getOffset()Gets the zone offset.ZoneOffsetOffsetDateTime. getOffset()Gets the zone offset.ZoneOffsetOffsetTime. getOffset()Gets the zone offset representing how far ahead or behind UTC the time is.ZoneOffsetZonedDateTime. getOffset()Gets the zone offset, such as '+01:00'.static ZoneOffsetZoneOffset. of(java.lang.String offsetID)Obtains 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 secondsZoneOffsetZoneOffset. 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 ZoneOffset Modifier and Type Method Description static CalendricalRule<ZoneOffset>ZoneOffset. rule()Gets the rule for the zone-offset.Methods in javax.time.calendar with parameters of type ZoneOffset Modifier and Type Method Description OffsetDateLocalDate. atOffset(ZoneOffset offset)Returns an offset date formed from this time and the specified offset.OffsetDateTimeLocalDateTime. atOffset(ZoneOffset offset)Returns an offset date-time formed from this date-time and the specified offset.OffsetTimeLocalTime. 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.OffsetDateOffsetDate. withOffset(ZoneOffset offset)Returns a copy of thisOffsetDatewith the specified offset.OffsetDateTimeOffsetDateTime. withOffsetSameInstant(ZoneOffset offset)Returns a copy of thisOffsetDateTimewith the specified offset ensuring that the result is at the same instant.OffsetTimeOffsetTime. withOffsetSameInstant(ZoneOffset offset)Returns a copy of thisOffsetTimewith the specified offset ensuring that the result is at the same instant on an implied day.OffsetDateTimeOffsetDateTime. withOffsetSameLocal(ZoneOffset offset)Returns a copy of thisOffsetDateTimewith the specified offset ensuring that the result has the same local date-time.OffsetTimeOffsetTime. 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 ZoneOffset Constructor Description Fixed(ZoneOffset offset)Constructor.OffsetDate(LocalDate date, ZoneOffset offset)Constructor.OffsetDateTime(LocalDateTime dateTime, ZoneOffset offset)Constructor.OffsetTime(LocalTime time, ZoneOffset offset)Constructor. -
Uses of ZoneOffset in javax.time.calendar.zone
Fields in javax.time.calendar.zone declared as ZoneOffset Modifier and Type Field Description private ZoneOffsetFixedZoneRules. offsetThe fixed offset.private ZoneOffsetZoneOffsetInfo. offsetThe offset for the local time-line.private ZoneOffsetZoneOffsetTransitionRule. offsetAfterThe offset after the cutover.private ZoneOffsetZoneOffsetTransitionRule. offsetBeforeThe offset before the cutover.(package private) ZoneOffsetTZDBZoneRulesCompiler.TZDBZone. standardOffsetThe standard offset.private ZoneOffsetZoneOffsetTransitionRule. standardOffsetThe standard offset at the cutover.private ZoneOffsetZoneRulesBuilder.TZWindow. standardOffsetThe standard offset during the window, not null.private ZoneOffset[]StandardZoneRules. standardOffsetsThe standard offsets.private ZoneOffset[]StandardZoneRules. wallOffsetsThe wall offsets.Methods in javax.time.calendar.zone that return ZoneOffset Modifier and Type Method Description ZoneOffsetZoneOffsetInfo. getEstimatedOffset()Gets an estimated offset for the local date-time.ZoneOffsetFixedZoneRules. getOffset(InstantProvider instant)Gets the offset applicable at the specified instant in this zone.ZoneOffsetStandardZoneRules. getOffset(InstantProvider instantProvider)Gets the offset applicable at the specified instant in this zone.ZoneOffsetZoneOffsetInfo. 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.ZoneOffsetZoneOffsetTransition. getOffsetAfter()Gets the offset after the transition.ZoneOffsetZoneOffsetTransitionRule. getOffsetAfter()Gets the offset after the transition.ZoneOffsetZoneOffsetTransition. getOffsetBefore()Gets the offset before the transition.ZoneOffsetZoneOffsetTransitionRule. getOffsetBefore()Gets the offset before the transition.ZoneOffsetFixedZoneRules. getStandardOffset(InstantProvider instant)Gets the standard offset for the specified instant in this zone.ZoneOffsetStandardZoneRules. getStandardOffset(InstantProvider instantProvider)Gets the standard offset for the specified instant in this zone.ZoneOffsetZoneOffsetTransitionRule. 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(java.lang.String str)(package private) static ZoneOffsetSer. readOffset(java.io.DataInput in)Reads the state from the stream.Methods in javax.time.calendar.zone with parameters of type ZoneOffset Modifier and Type Method Description ZoneRulesBuilderZoneRulesBuilder. addWindow(ZoneOffset standardOffset, LocalDateTime until, ZoneRulesBuilder.TimeDefinition untilDefinition)Adds a window to the builder that can be used to filter a set of rules.ZoneRulesBuilderZoneRulesBuilder. 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.OffsetDateTimeZoneRulesBuilder.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, java.io.DataOutput out)Writes the state to the stream.Constructors in javax.time.calendar.zone with parameters of type ZoneOffset Constructor Description FixedZoneRules(ZoneOffset offset)Constructor.StandardZoneRules(long[] standardTransitions, ZoneOffset[] standardOffsets, long[] savingsInstantTransitions, ZoneOffset[] wallOffsets, ZoneOffsetTransitionRule[] lastRules)Constructor.StandardZoneRules(ZoneOffset baseStandardOffset, ZoneOffset baseWallOffset, java.util.List<OffsetDateTime> standardOffsetTransitionList, java.util.List<ZoneOffsetTransition> transitionList, java.util.List<ZoneOffsetTransitionRule> lastRules)Constructor.TZWindow(ZoneOffset standardOffset, LocalDateTime windowEnd, ZoneRulesBuilder.TimeDefinition timeDefinition)Constructor.ZoneOffsetInfo(LocalDateTime dateTime, ZoneOffset offset, ZoneOffsetTransition transition)Creates an instance handling a simple single offset.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.
-