Uses of Class
org.threeten.bp.ZoneOffset
Packages that use ZoneOffset
Package
Description
The main API for dates, times, instants, and durations.
Support for calendar systems other than the default ISO.
Access to date and time using fields and units.
Support for time-zones and their rules.
-
Uses of ZoneOffset in org.threeten.bp
Fields in org.threeten.bp declared as ZoneOffsetModifier and TypeFieldDescriptionstatic final ZoneOffsetZoneOffset.MAXConstant for the maximum supported offset.static final ZoneOffsetZoneOffset.MINConstant for the maximum supported offset.private final ZoneOffsetOffsetDateTime.offsetThe offset from UTC/Greenwich.private final ZoneOffsetOffsetTime.offsetThe offset from UTC/Greenwich.private final ZoneOffsetZonedDateTime.offsetThe offset from UTC/Greenwich.static final ZoneOffsetZoneOffset.UTCThe time-zone offset for UTC, with an ID of 'Z'.Fields in org.threeten.bp with type parameters of type ZoneOffsetModifier and TypeFieldDescriptionstatic final TemporalQuery<ZoneOffset>ZoneOffset.FROMSimulate JDK 8 method reference ZoneOffset::from.private static final ConcurrentMap<String,ZoneOffset> ZoneOffset.ID_CACHECache of time-zone offset by ID.private static final ConcurrentMap<Integer,ZoneOffset> ZoneOffset.SECONDS_CACHECache of time-zone offset by offset in seconds.Methods in org.threeten.bp that return ZoneOffsetModifier and TypeMethodDescriptionstatic ZoneOffsetZoneOffset.from(TemporalAccessor temporal) Obtains an instance ofZoneOffsetfrom a temporal object.OffsetDateTime.getOffset()Gets the zone offset, such as '+01:00'.OffsetTime.getOffset()Gets the zone offset, such as '+01:00'.ZonedDateTime.getOffset()Gets the zone offset, such as '+01:00'.static ZoneOffsetObtains an instance ofZoneOffsetusing the ID.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 seconds(package private) static ZoneOffsetZoneOffset.readExternal(DataInput in) Methods in org.threeten.bp with parameters of type ZoneOffsetModifier and TypeMethodDescriptionInstant.atOffset(ZoneOffset offset) Combines this instant with an offset to create anOffsetDateTime.LocalDateTime.atOffset(ZoneOffset offset) Combines this date-time with an offset to create anOffsetDateTime.LocalTime.atOffset(ZoneOffset offset) Combines this time with an offset to create anOffsetTime.intZoneOffset.compareTo(ZoneOffset other) Compares this offset to another offset in descending order.static OffsetDateTimeOffsetDateTime.of(int year, int month, int dayOfMonth, int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom a year, month, day, hour, minute, second, nanosecond and offset.static OffsetDateTimeOffsetDateTime.of(LocalDate date, LocalTime time, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom a date, time and offset.static OffsetDateTimeOffsetDateTime.of(LocalDateTime dateTime, ZoneOffset offset) Obtains an instance ofOffsetDateTimefrom a date-time and offset.static OffsetTimeOffsetTime.of(int hour, int minute, int second, int nanoOfSecond, ZoneOffset offset) Obtains an instance ofOffsetTimefrom an hour, minute, second and nanosecond.static OffsetTimeOffsetTime.of(LocalTime time, ZoneOffset offset) Obtains an instance ofOffsetTimefrom a local time and an offset.static LocalDateTimeLocalDateTime.ofEpochSecond(long epochSecond, int nanoOfSecond, ZoneOffset offset) Obtains an instance ofLocalDateTimeusing seconds from the epoch of 1970-01-01T00:00:00Z.static ZonedDateTimeZonedDateTime.ofInstant(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone) Obtains an instance ofZonedDateTimefrom the instant formed by combining the local date-time and offset.private static ZonedDateTimeZonedDateTime.ofLenient(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone) Obtains an instance ofZonedDateTimeleniently, for advanced use cases, allowing any combination of local date-time, offset and zone ID.static ZonedDateTimeZonedDateTime.ofLocal(LocalDateTime localDateTime, ZoneId zone, ZoneOffset preferredOffset) Obtains an instance ofZonedDateTimefrom a local date-time using the preferred offset if possible.static ZoneIdZoneId.ofOffset(String prefix, ZoneOffset offset) Obtains an instance ofZoneIdwrapping an offset.static ZonedDateTimeZonedDateTime.ofStrict(LocalDateTime localDateTime, ZoneOffset offset, ZoneId zone) Obtains an instance ofZonedDateTimestrictly validating the combination of local date-time, offset and zone ID.private ZonedDateTimeZonedDateTime.resolveOffset(ZoneOffset offset) Resolves the offset into this zoned date-time.private OffsetDateTimeOffsetDateTime.with(LocalDateTime dateTime, ZoneOffset offset) Returns a new date-time based on this one, returningthiswhere possible.private OffsetTimeOffsetTime.with(LocalTime time, ZoneOffset offset) Returns a new time based on this one, returningthiswhere possible.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 org.threeten.bp with parameters of type ZoneOffsetModifierConstructorDescriptionprivateOffsetDateTime(LocalDateTime dateTime, ZoneOffset offset) Constructor.privateOffsetTime(LocalTime time, ZoneOffset offset) Constructor.privateZonedDateTime(LocalDateTime dateTime, ZoneOffset offset, ZoneId zone) Constructor. -
Uses of ZoneOffset in org.threeten.bp.chrono
Fields in org.threeten.bp.chrono declared as ZoneOffsetModifier and TypeFieldDescriptionprivate final ZoneOffsetChronoZonedDateTimeImpl.offsetThe zone offset.Methods in org.threeten.bp.chrono that return ZoneOffsetModifier and TypeMethodDescriptionabstract ZoneOffsetChronoZonedDateTime.getOffset()Gets the zone offset, such as '+01:00'.ChronoZonedDateTimeImpl.getOffset()Methods in org.threeten.bp.chrono with parameters of type ZoneOffsetModifier and TypeMethodDescription(package private) static <R extends ChronoLocalDate>
ChronoZonedDateTime<R>ChronoZonedDateTimeImpl.ofBest(ChronoLocalDateTimeImpl<R> localDateTime, ZoneId zone, ZoneOffset preferredOffset) Obtains an instance from a local date-time using the preferred offset if possible.longChronoLocalDateTime.toEpochSecond(ZoneOffset offset) Converts this date-time to the number of seconds from the epoch of 1970-01-01T00:00:00Z.ChronoLocalDateTime.toInstant(ZoneOffset offset) Converts this date-time to anInstant.Constructors in org.threeten.bp.chrono with parameters of type ZoneOffsetModifierConstructorDescriptionprivateChronoZonedDateTimeImpl(ChronoLocalDateTimeImpl<D> dateTime, ZoneOffset offset, ZoneId zone) Constructor. -
Uses of ZoneOffset in org.threeten.bp.temporal
Fields in org.threeten.bp.temporal with type parameters of type ZoneOffsetModifier and TypeFieldDescription(package private) static final TemporalQuery<ZoneOffset>TemporalQueries.OFFSETMethods in org.threeten.bp.temporal that return types with arguments of type ZoneOffsetModifier and TypeMethodDescriptionstatic final TemporalQuery<ZoneOffset>TemporalQueries.offset()A query forZoneOffsetreturning null if not found. -
Uses of ZoneOffset in org.threeten.bp.zone
Fields in org.threeten.bp.zone declared as ZoneOffsetModifier and TypeFieldDescriptionprivate final ZoneOffsetZoneRules.Fixed.offsetThe offset.private final ZoneOffsetZoneOffsetTransition.offsetAfterThe offset after transition.private final ZoneOffsetZoneOffsetTransitionRule.offsetAfterThe offset after the cutover.private final ZoneOffsetZoneOffsetTransition.offsetBeforeThe offset before transition.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 org.threeten.bp.zone that return ZoneOffsetModifier and TypeMethodDescription(package private) ZoneOffsetZoneRulesBuilder.TZWindow.createWallOffset(int savingsSecs) Creates the wall offset for the local date-time at the end of the window.StandardZoneRules.getOffset(LocalDateTime localDateTime) ZoneRules.Fixed.getOffset(LocalDateTime localDateTime) abstract ZoneOffsetGets the offset applicable at the specified instant in these rules.abstract ZoneOffsetZoneRules.getOffset(LocalDateTime localDateTime) Gets a suitable offset for the specified local date-time in these rules.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.StandardZoneRules.getStandardOffset(Instant instant) ZoneOffsetTransitionRule.getStandardOffset()Gets the standard offset in force at the transition.ZoneRules.Fixed.getStandardOffset(Instant instant) abstract ZoneOffsetZoneRules.getStandardOffset(Instant instant) 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 org.threeten.bp.zone that return types with arguments of type ZoneOffsetModifier and TypeMethodDescriptionStandardZoneRules.getValidOffsets(LocalDateTime localDateTime) (package private) List<ZoneOffset>ZoneOffsetTransition.getValidOffsets()Gets the valid offsets during this transition.ZoneRules.Fixed.getValidOffsets(LocalDateTime localDateTime) abstract List<ZoneOffset>ZoneRules.getValidOffsets(LocalDateTime localDateTime) Gets the offset applicable at the specified local date-time in these rules.Methods in org.threeten.bp.zone with parameters of type ZoneOffsetModifier and TypeMethodDescriptionZoneRulesBuilder.addWindow(ZoneOffset standardOffset, LocalDateTime until, ZoneOffsetTransitionRule.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.ZoneOffsetTransitionRule.TimeDefinition.createDateTime(LocalDateTime dateTime, ZoneOffset standardOffset, ZoneOffset wallOffset) Converts the specified local date-time to the local date-time actually seen on a wall clock.private intStandardZoneRules.findYear(long epochSecond, ZoneOffset offset) booleanStandardZoneRules.isValidOffset(LocalDateTime localDateTime, ZoneOffset offset) booleanZoneOffsetTransition.isValidOffset(ZoneOffset offset) Checks if the specified offset is valid during this transition.booleanZoneRules.Fixed.isValidOffset(LocalDateTime dateTime, ZoneOffset offset) abstract booleanZoneRules.isValidOffset(LocalDateTime localDateTime, ZoneOffset offset) Checks if the offset date-time is valid for these rules.static ZoneOffsetTransitionZoneOffsetTransition.of(LocalDateTime transition, ZoneOffset offsetBefore, ZoneOffset offsetAfter) Obtains an instance defining a transition between two offsets.static ZoneOffsetTransitionRuleZoneOffsetTransitionRule.of(Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, boolean timeEndOfDay, ZoneOffsetTransitionRule.TimeDefinition timeDefnition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter) Obtains an instance defining the yearly rule to create transitions between two offsets.static ZoneRulesZoneRules.of(ZoneOffset offset) Obtains an instance ofZoneRulesthat always uses the same offset.static ZoneRulesZoneRules.of(ZoneOffset baseStandardOffset, ZoneOffset baseWallOffset, List<ZoneOffsetTransition> standardOffsetTransitionList, List<ZoneOffsetTransition> transitionList, List<ZoneOffsetTransitionRule> lastRules) Obtains an instance ofZoneRuleswith full transition rules.(package private) ZoneOffsetTransitionZoneRulesBuilder.TZRule.toTransition(ZoneOffset standardOffset, int savingsBeforeSecs) Converts this to a transition.(package private) ZoneOffsetTransitionRuleZoneRulesBuilder.TZRule.toTransitionRule(ZoneOffset standardOffset, int savingsBeforeSecs) Converts this to a transition rule.(package private) static voidSer.writeOffset(ZoneOffset offset, DataOutput out) Writes the state to the stream.Constructors in org.threeten.bp.zone with parameters of type ZoneOffsetModifierConstructorDescription(package private)Fixed(ZoneOffset offset) Constructor.privateStandardZoneRules(long[] standardTransitions, ZoneOffset[] standardOffsets, long[] savingsInstantTransitions, ZoneOffset[] wallOffsets, ZoneOffsetTransitionRule[] lastRules) Constructor.(package private)StandardZoneRules(ZoneOffset baseStandardOffset, ZoneOffset baseWallOffset, List<ZoneOffsetTransition> standardOffsetTransitionList, List<ZoneOffsetTransition> transitionList, List<ZoneOffsetTransitionRule> lastRules) Creates an instance.(package private)TZWindow(ZoneOffset standardOffset, LocalDateTime windowEnd, ZoneOffsetTransitionRule.TimeDefinition timeDefinition) Constructor.(package private)ZoneOffsetTransition(long epochSecond, ZoneOffset offsetBefore, ZoneOffset offsetAfter) Creates an instance from epoch-second and offsets.(package private)ZoneOffsetTransition(LocalDateTime transition, ZoneOffset offsetBefore, ZoneOffset offsetAfter) Creates an instance defining a transition between two offsets.(package private)ZoneOffsetTransitionRule(Month month, int dayOfMonthIndicator, DayOfWeek dayOfWeek, LocalTime time, int adjustDays, ZoneOffsetTransitionRule.TimeDefinition timeDefnition, ZoneOffset standardOffset, ZoneOffset offsetBefore, ZoneOffset offsetAfter) Creates an instance defining the yearly rule to create transitions between two offsets.