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 ZoneOffset
OffsetDate. offset
The zone offset.private ZoneOffset
OffsetDateTime. offset
The zone offset.private ZoneOffset
OffsetTime. offset
The zone offset from UTC, never null.static ZoneOffset
ZoneOffset. UTC
The 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_CACHE
Cache of time-zone offset by id.private static CalendricalRule<ZoneOffset>
ZoneOffset.Rule. INSTANCE
private static java.util.Map<java.lang.Integer,ZoneOffset>
ZoneOffset. SECONDS_CACHE
Cache of time-zone offset by offset in seconds.Methods in javax.time.calendar that return ZoneOffset Modifier and Type Method Description protected ZoneOffset
ZoneOffset.Rule. derive(Calendrical calendrical)
ZoneOffset
OffsetDate. getOffset()
Gets the zone offset.ZoneOffset
OffsetDateTime. getOffset()
Gets the zone offset.ZoneOffset
OffsetTime. getOffset()
Gets the zone offset representing how far ahead or behind UTC the time is.ZoneOffset
ZonedDateTime. getOffset()
Gets the zone offset, such as '+01:00'.static ZoneOffset
ZoneOffset. of(java.lang.String offsetID)
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
ZoneOffset. 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 OffsetDate
LocalDate. atOffset(ZoneOffset offset)
Returns an offset date formed from this time and the specified offset.OffsetDateTime
LocalDateTime. atOffset(ZoneOffset offset)
Returns an offset date-time formed from this date-time and the specified offset.OffsetTime
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
OffsetDate. withOffset(ZoneOffset offset)
Returns a copy of thisOffsetDate
with the specified offset.OffsetDateTime
OffsetDateTime. withOffsetSameInstant(ZoneOffset offset)
Returns a copy of thisOffsetDateTime
with the specified offset ensuring that the result is at the same instant.OffsetTime
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
OffsetDateTime. withOffsetSameLocal(ZoneOffset offset)
Returns a copy of thisOffsetDateTime
with the specified offset ensuring that the result has the same local date-time.OffsetTime
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 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 ZoneOffset
FixedZoneRules. offset
The fixed offset.private ZoneOffset
ZoneOffsetInfo. offset
The offset for the local time-line.private ZoneOffset
ZoneOffsetTransitionRule. offsetAfter
The offset after the cutover.private ZoneOffset
ZoneOffsetTransitionRule. offsetBefore
The offset before the cutover.(package private) ZoneOffset
TZDBZoneRulesCompiler.TZDBZone. standardOffset
The standard offset.private ZoneOffset
ZoneOffsetTransitionRule. standardOffset
The standard offset at the cutover.private ZoneOffset
ZoneRulesBuilder.TZWindow. standardOffset
The standard offset during the window, not null.private ZoneOffset[]
StandardZoneRules. standardOffsets
The standard offsets.private ZoneOffset[]
StandardZoneRules. wallOffsets
The wall offsets.Methods in javax.time.calendar.zone that return ZoneOffset Modifier and Type Method Description ZoneOffset
ZoneOffsetInfo. getEstimatedOffset()
Gets an estimated offset for the local date-time.ZoneOffset
FixedZoneRules. getOffset(InstantProvider instant)
Gets the offset applicable at the specified instant in this zone.ZoneOffset
StandardZoneRules. getOffset(InstantProvider instantProvider)
Gets the offset applicable at the specified instant in this zone.ZoneOffset
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.ZoneOffset
ZoneOffsetTransition. getOffsetAfter()
Gets the offset after the transition.ZoneOffset
ZoneOffsetTransitionRule. getOffsetAfter()
Gets the offset after the transition.ZoneOffset
ZoneOffsetTransition. getOffsetBefore()
Gets the offset before the transition.ZoneOffset
ZoneOffsetTransitionRule. getOffsetBefore()
Gets the offset before the transition.ZoneOffset
FixedZoneRules. getStandardOffset(InstantProvider instant)
Gets the standard offset for the specified instant in this zone.ZoneOffset
StandardZoneRules. getStandardOffset(InstantProvider instantProvider)
Gets the standard offset for the specified instant in this zone.ZoneOffset
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(java.lang.String str)
(package private) static ZoneOffset
Ser. 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 ZoneRulesBuilder
ZoneRulesBuilder. 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
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.OffsetDateTime
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, 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.
-