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
Fields in javax.time.calendar declared as ZoneOffsetModifier and TypeFieldDescriptionprivate final ZoneOffset
OffsetDate.offset
The zone offset.private final ZoneOffset
OffsetDateTime.offset
The zone offset.private final ZoneOffset
OffsetTime.offset
The zone offset from UTC, never null.static final ZoneOffset
ZoneOffset.UTC
The 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_CACHE
Cache of time-zone offset by id.private static final CalendricalRule<ZoneOffset>
ZoneOffset.Rule.INSTANCE
private static final Map<Integer,
ZoneOffset> ZoneOffset.SECONDS_CACHE
Cache of time-zone offset by offset in seconds.Methods in javax.time.calendar that return ZoneOffsetModifier and TypeMethodDescriptionprotected ZoneOffset
ZoneOffset.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 ZoneOffset
Obtains an instance ofZoneOffset
using the id.static ZoneOffset
ZoneOffset.of
(PeriodProvider periodProvider) Obtains an instance ofZoneOffset
from a period.static ZoneOffset
ZoneOffset.ofHours
(int hours) Obtains an instance ofZoneOffset
using an offset in hours.static ZoneOffset
ZoneOffset.ofHoursMinutes
(int hours, int minutes) Obtains an instance ofZoneOffset
using an offset in hours and minutes.static ZoneOffset
ZoneOffset.ofHoursMinutesSeconds
(int hours, int minutes, int seconds) Obtains an instance ofZoneOffset
using an offset in hours, minutes and seconds.static ZoneOffset
ZoneOffset.ofTotalSeconds
(int totalSeconds) Obtains an instance ofZoneOffset
specifying 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.int
ZoneOffset.compareTo
(ZoneOffset other) Compares this offset to another offset in descending order.static OffsetDate
OffsetDate.of
(int year, int monthOfYear, int dayOfMonth, ZoneOffset offset) Obtains an instance ofOffsetDate
from a year, month and day.static OffsetDate
OffsetDate.of
(int year, MonthOfYear monthOfYear, int dayOfMonth, ZoneOffset offset) Obtains an instance ofOffsetDate
from a year, month and day.static OffsetDate
OffsetDate.of
(DateProvider dateProvider, ZoneOffset offset) Obtains an instance ofOffsetDate
from a date provider.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, 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 OffsetTime
OffsetTime.of
(int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, ZoneOffset offset) Obtains an instance ofOffsetTime
from an hour, minute, second and nanosecond.static OffsetTime
OffsetTime.of
(int hourOfDay, int minuteOfHour, int secondOfMinute, ZoneOffset offset) Obtains an instance ofOffsetTime
from an hour, minute and second.static OffsetTime
OffsetTime.of
(int hourOfDay, int minuteOfHour, ZoneOffset offset) Obtains an instance ofOffsetTime
from an hour and minute.static OffsetTime
OffsetTime.of
(TimeProvider timeProvider, ZoneOffset offset) Obtains an instance ofOffsetTime
from a time provider.static TimeZone
TimeZone.of
(ZoneOffset offset) Obtains an instance ofTimeZone
representing a fixed time-zone.static OffsetDateTime
OffsetDateTime.ofEpochSeconds
(long epochSeconds, ZoneOffset offset) Obtains an instance ofOffsetDateTime
using seconds from the epoch of 1970-01-01T00:00:00Z.static OffsetDate
OffsetDate.ofInstant
(InstantProvider instantProvider, ZoneOffset offset) Obtains an instance ofOffsetDate
from anInstantProvider
.static OffsetDateTime
OffsetDateTime.ofInstant
(InstantProvider instantProvider, ZoneOffset offset) Obtains an instance ofOffsetDateTime
from anInstantProvider
.static OffsetTime
OffsetTime.ofInstant
(InstantProvider instantProvider, ZoneOffset offset) Obtains an instance ofOffsetTime
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.private OffsetDate
OffsetDate.with
(LocalDate date, ZoneOffset offset) Returns a new date based on this one, returningthis
where possible.private OffsetDateTime
OffsetDateTime.with
(LocalDateTime dateTime, ZoneOffset offset) Returns a new date-time based on this one, returningthis
where possible.OffsetDate.withOffset
(ZoneOffset offset) Returns a copy of thisOffsetDate
with the specified offset.OffsetDateTime.withOffsetSameInstant
(ZoneOffset offset) Returns a copy of thisOffsetDateTime
with the specified offset ensuring that the result is at the same instant.OffsetTime.withOffsetSameInstant
(ZoneOffset offset) Returns a copy of thisOffsetTime
with the specified offset ensuring that the result is at the same instant on an implied day.OffsetDateTime.withOffsetSameLocal
(ZoneOffset offset) Returns a copy of thisOffsetDateTime
with the specified offset ensuring that the result has the same local date-time.OffsetTime.withOffsetSameLocal
(ZoneOffset offset) Returns a copy of thisOffsetTime
with 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.private
OffsetDate
(LocalDate date, ZoneOffset offset) Constructor.private
OffsetDateTime
(LocalDateTime dateTime, ZoneOffset offset) Constructor.private
OffsetTime
(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 ZoneOffset
FixedZoneRules.offset
The fixed offset.private final ZoneOffset
ZoneOffsetInfo.offset
The offset for the local time-line.private final ZoneOffset
ZoneOffsetTransitionRule.offsetAfter
The offset after the cutover.private final ZoneOffset
ZoneOffsetTransitionRule.offsetBefore
The offset before the cutover.(package private) ZoneOffset
TZDBZoneRulesCompiler.TZDBZone.standardOffset
The standard offset.private final ZoneOffset
ZoneOffsetTransitionRule.standardOffset
The standard offset at the cutover.private final ZoneOffset
ZoneRulesBuilder.TZWindow.standardOffset
The standard offset during the window, not null.private final ZoneOffset[]
StandardZoneRules.standardOffsets
The standard offsets.private final ZoneOffset[]
StandardZoneRules.wallOffsets
The 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 ZoneOffset
ZoneRules.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 ZoneOffset
ZoneRules.getStandardOffset
(InstantProvider instantProvider) Gets the standard offset for the specified instant in this zone.private ZoneOffset
TZDBZoneRulesCompiler.parseOffset
(String str) (package private) static ZoneOffset
Ser.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.boolean
ZoneOffsetInfo.isValidOffset
(ZoneOffset offset) Checks if the specified offset is valid for this date-time.boolean
ZoneOffsetTransition.isValidOffset
(ZoneOffset offset) Checks if the specified offset is valid during this transition.static ZoneOffsetInfo
ZoneOffsetInfo.of
(LocalDateTime dateTime, ZoneOffset offset, ZoneOffsetTransition transition) Creates an instance representing a simple single offset or a transition.static ZoneOffsetTransition
ZoneOffsetTransition.of
(OffsetDateTime transition, ZoneOffset offsetAfter) Obtains an instance defining a transition between two offsets.static ZoneOffsetTransitionRule
ZoneOffsetTransitionRule.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 ZoneRules
ZoneRules.ofFixed
(ZoneOffset offset) Obtains a rules instance for a specific offset.(package private) ZoneOffsetTransition
ZoneRulesBuilder.TZRule.toTransition
(ZoneOffset standardOffset, Period savingsBefore) Converts this to a transition.(package private) ZoneOffsetTransitionRule
ZoneRulesBuilder.TZRule.toTransitionRule
(ZoneOffset standardOffset, Period savingsBefore) Converts this to a transition rule.(package private) static void
Ser.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.private
StandardZoneRules
(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.