Uses of Class
org.threeten.bp.ZoneOffset
-
Packages that use ZoneOffset Package Description org.threeten.bp The main API for dates, times, instants, and durations.org.threeten.bp.chrono Support for calendar systems other than the default ISO.org.threeten.bp.temporal Access to date and time using fields and units.org.threeten.bp.zone Support for time-zones and their rules. -
-
Uses of ZoneOffset in org.threeten.bp
Fields in org.threeten.bp declared as ZoneOffset Modifier and Type Field Description static ZoneOffsetZoneOffset. MAXConstant for the maximum supported offset.static ZoneOffsetZoneOffset. MINConstant for the maximum supported offset.private ZoneOffsetOffsetDateTime. offsetThe offset from UTC/Greenwich.private ZoneOffsetOffsetTime. offsetThe offset from UTC/Greenwich.private ZoneOffsetZonedDateTime. offsetThe offset from UTC/Greenwich.static ZoneOffsetZoneOffset. UTCThe time-zone offset for UTC, with an ID of 'Z'.Fields in org.threeten.bp with type parameters of type ZoneOffset Modifier and Type Field Description static TemporalQuery<ZoneOffset>ZoneOffset. FROMSimulate JDK 8 method reference ZoneOffset::from.private static java.util.concurrent.ConcurrentMap<java.lang.String,ZoneOffset>ZoneOffset. ID_CACHECache of time-zone offset by ID.private static java.util.concurrent.ConcurrentMap<java.lang.Integer,ZoneOffset>ZoneOffset. SECONDS_CACHECache of time-zone offset by offset in seconds.Methods in org.threeten.bp that return ZoneOffset Modifier and Type Method Description static ZoneOffsetZoneOffset. from(TemporalAccessor temporal)Obtains an instance ofZoneOffsetfrom a temporal object.ZoneOffsetOffsetDateTime. getOffset()Gets the zone offset, such as '+01:00'.ZoneOffsetOffsetTime. getOffset()Gets the zone offset, such as '+01:00'.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. 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(java.io.DataInput in)Methods in org.threeten.bp with parameters of type ZoneOffset Modifier and Type Method Description OffsetDateTimeInstant. atOffset(ZoneOffset offset)Combines this instant with an offset to create anOffsetDateTime.OffsetDateTimeLocalDateTime. atOffset(ZoneOffset offset)Combines this date-time with an offset to create anOffsetDateTime.OffsetTimeLocalTime. 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(java.lang.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.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 org.threeten.bp with parameters of type ZoneOffset Constructor Description OffsetDateTime(LocalDateTime dateTime, ZoneOffset offset)Constructor.OffsetTime(LocalTime time, ZoneOffset offset)Constructor.ZonedDateTime(LocalDateTime dateTime, ZoneOffset offset, ZoneId zone)Constructor. -
Uses of ZoneOffset in org.threeten.bp.chrono
Fields in org.threeten.bp.chrono declared as ZoneOffset Modifier and Type Field Description private ZoneOffsetChronoZonedDateTimeImpl. offsetThe zone offset.Methods in org.threeten.bp.chrono that return ZoneOffset Modifier and Type Method Description abstract ZoneOffsetChronoZonedDateTime. getOffset()Gets the zone offset, such as '+01:00'.ZoneOffsetChronoZonedDateTimeImpl. getOffset()Methods in org.threeten.bp.chrono with parameters of type ZoneOffset Modifier and Type Method Description (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.InstantChronoLocalDateTime. toInstant(ZoneOffset offset)Converts this date-time to anInstant.Constructors in org.threeten.bp.chrono with parameters of type ZoneOffset Constructor Description ChronoZonedDateTimeImpl(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 ZoneOffset Modifier and Type Field Description (package private) static TemporalQuery<ZoneOffset>TemporalQueries. OFFSETMethods in org.threeten.bp.temporal that return types with arguments of type ZoneOffset Modifier and Type Method Description static 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 ZoneOffset Modifier and Type Field Description private ZoneOffsetZoneRules.Fixed. offsetThe offset.private ZoneOffsetZoneOffsetTransition. offsetAfterThe offset after transition.private ZoneOffsetZoneOffsetTransitionRule. offsetAfterThe offset after the cutover.private ZoneOffsetZoneOffsetTransition. offsetBeforeThe offset before transition.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 org.threeten.bp.zone that return ZoneOffset Modifier and Type Method Description (package private) ZoneOffsetZoneRulesBuilder.TZWindow. createWallOffset(int savingsSecs)Creates the wall offset for the local date-time at the end of the window.ZoneOffsetStandardZoneRules. getOffset(Instant instant)ZoneOffsetStandardZoneRules. getOffset(LocalDateTime localDateTime)ZoneOffsetZoneRules.Fixed. getOffset(Instant instant)ZoneOffsetZoneRules.Fixed. getOffset(LocalDateTime localDateTime)abstract ZoneOffsetZoneRules. getOffset(Instant instant)Gets 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.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.ZoneOffsetStandardZoneRules. getStandardOffset(Instant instant)ZoneOffsetZoneOffsetTransitionRule. getStandardOffset()Gets the standard offset in force at the transition.ZoneOffsetZoneRules.Fixed. getStandardOffset(Instant instant)abstract ZoneOffsetZoneRules. getStandardOffset(Instant instant)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 org.threeten.bp.zone that return types with arguments of type ZoneOffset Modifier and Type Method Description java.util.List<ZoneOffset>StandardZoneRules. getValidOffsets(LocalDateTime localDateTime)(package private) java.util.List<ZoneOffset>ZoneOffsetTransition. getValidOffsets()Gets the valid offsets during this transition.java.util.List<ZoneOffset>ZoneRules.Fixed. getValidOffsets(LocalDateTime localDateTime)abstract java.util.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 ZoneOffset Modifier and Type Method Description ZoneRulesBuilderZoneRulesBuilder. addWindow(ZoneOffset standardOffset, LocalDateTime until, ZoneOffsetTransitionRule.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.LocalDateTimeZoneOffsetTransitionRule.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, java.util.List<ZoneOffsetTransition> standardOffsetTransitionList, java.util.List<ZoneOffsetTransition> transitionList, java.util.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, java.io.DataOutput out)Writes the state to the stream.Constructors in org.threeten.bp.zone with parameters of type ZoneOffset Constructor Description Fixed(ZoneOffset offset)Constructor.StandardZoneRules(long[] standardTransitions, ZoneOffset[] standardOffsets, long[] savingsInstantTransitions, ZoneOffset[] wallOffsets, ZoneOffsetTransitionRule[] lastRules)Constructor.StandardZoneRules(ZoneOffset baseStandardOffset, ZoneOffset baseWallOffset, java.util.List<ZoneOffsetTransition> standardOffsetTransitionList, java.util.List<ZoneOffsetTransition> transitionList, java.util.List<ZoneOffsetTransitionRule> lastRules)Creates an instance.TZWindow(ZoneOffset standardOffset, LocalDateTime windowEnd, ZoneOffsetTransitionRule.TimeDefinition timeDefinition)Constructor.ZoneOffsetTransition(long epochSecond, ZoneOffset offsetBefore, ZoneOffset offsetAfter)Creates an instance from epoch-second and offsets.ZoneOffsetTransition(LocalDateTime transition, ZoneOffset offsetBefore, ZoneOffset offsetAfter)Creates an instance defining a transition between two offsets.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.
-