Uses of Class
net.time4j.tz.ZonalOffset
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Support for various regional calendars.
Contains classes related to calendrical astronomy.
This package contains the expert-level format- and parse engine of Time4J.
Interval support.
General timezone-API.
Permits the construction of historized or rule-based timezones.
Covers alternative or specialized timezones.
-
Uses of ZonalOffset in net.time4j
Modifier and TypeMethodDescriptionElementOperator.at(ZonalOffset offset)
Creates an operator which can adjust aMoment
at the given timezone offset.GeneralTimestamp.at(ZonalOffset offset, StartOfDay startOfDay)
Combines this general timestamp with given timezone offset to a global UTC-moment.PlainTimestamp.at(ZonalOffset offset)
Combines this local timestamp with the given timezone offset to a global UTC-moment.ZonalElement.at(ZonalOffset offset)
Creates a function which can query aMoment
at the given timezone offset. -
Uses of ZonalOffset in net.time4j.calendar
Modifier and TypeMethodDescriptionPersianCalendar.Date.getTimezone()
If the underlying algorithm isPersianAlgorithm.ASTRONOMICAL
then this method will yield the timezone offset, usually Teheran Standard Time.Modifier and TypeMethodDescriptionPersianCalendar.getDate(ZonalOffset offset)
Obtains an astronomical date view specific for given timezone offset. -
Uses of ZonalOffset in net.time4j.calendar.astro
Modifier and TypeMethodDescriptionstatic ChronoFunction<Moment,PlainTimestamp>
SolarTime.apparentAt(ZonalOffset offset)
Determines the apparent solar time of any moment at given local time zone offset.static ChronoFunction<Moment,PlainTimestamp>
SolarTime.apparentAt(ZonalOffset offset, String calculator)
Determines the apparent solar time of any moment at given local time zone offset.static JulianDay
JulianDay.ofEphemerisTime(CalendarDate date, PlainTime time, ZonalOffset offset)
Creates a Julian day on the time scaleTimeScale.TT
, sometimes also called Julian Ephemeris Day.static ChronoFunction<Moment,PlainTimestamp>
SolarTime.onAverage(ZonalOffset offset)
Determines the mean solar time of any moment at given local time zone offset. -
Uses of ZonalOffset in net.time4j.format.expert
Modifier and TypeMethodDescriptionstatic ChronoPrinter<Moment>
Iso8601Format.ofMoment(IsoDateStyle dateStyle, IsoDecimalStyle decimalStyle, ClockUnit precision, ZonalOffset offset)
Obtains a printer with given styles for printing a moment. -
Uses of ZonalOffset in net.time4j.range
Modifier and TypeMethodDescriptionTimestampInterval.at(ZonalOffset offset)
Combines this local timestamp interval with given timezone offset to a global UTC-interval.MomentInterval.formatISO(IsoDateStyle dateStyle, IsoDecimalStyle decimalStyle, ClockUnit precision, ZonalOffset offset, InfinityStyle infinityStyle)
Prints the canonical form of this interval in given ISO-8601 style.MomentInterval.formatReduced(IsoDateStyle dateStyle, IsoDecimalStyle decimalStyle, ClockUnit precision, ZonalOffset offset, InfinityStyle infinityStyle)
Prints the canonical form of this interval in given reduced ISO-8601 style.static IsoRecurrence<MomentInterval>
IsoRecurrence.of(int count, Duration<?> duration, Moment end, ZonalOffset offset)
Creates a recurrent backward sequence of moment intervals having given duration.static IsoRecurrence<MomentInterval>
IsoRecurrence.of(int count, Moment start, Duration<?> duration, ZonalOffset offset)
Creates a recurrent sequence of moment intervals having given duration.static IsoRecurrence<MomentInterval>
IsoRecurrence.of(int count, Moment start, Moment end, ZonalOffset offset)
Creates a recurrent sequence of moment intervals having the duration of first timestamp interval in years, months, days, hours, minutes, seconds and nanoseconds. -
Uses of ZonalOffset in net.time4j.tz
Modifier and TypeFieldDescriptionstatic ZonalOffset
ZonalOffset.UTC
Constant for the UTC timezone representing a shift of0
seconds with the canonical representation "Z".Modifier and TypeMethodDescriptionstatic ZonalOffset
ZonalOffset.atLongitude(BigDecimal longitude)
Creates a new shift based on a geographical longitude.static ZonalOffset
ZonalOffset.atLongitude(OffsetSign sign, int degrees, int arcMinutes, double arcSeconds)
Creates a new shift based on a geographical longitude.Timezone.getDaylightSavingOffset(UnixTime ut)
Deprecated.abstract ZonalOffset
Timezone.getExtraOffset(UnixTime ut)
Calculates the extra shift for given global timestamp, in addition to the raw shift.TransitionHistory.getInitialOffset()
Return the initial offset no matter if there are any transitions defined or not.abstract ZonalOffset
Timezone.getOffset(GregorianDate localDate, WallTime localTime)
Calculates the offset for given local timestamp.abstract ZonalOffset
Calculates the total offset for given global timestamp.TransitionStrategy.getOffset(GregorianDate localDate, WallTime localTime, Timezone timezone)
Calculates a suitable offset for given local timestamp.abstract ZonalOffset
Timezone.getRawOffset(UnixTime ut)
Calculates the raw offset for given global timestamp.Timezone.getStandardOffset(UnixTime ut)
Deprecated.This method was renamed, useTimezone.getRawOffset(UnixTime)
instead.static ZonalOffset
ZonalOffset.ofHours(OffsetSign sign, int hours)
Static factory method for a shift which has the given full hour part.static ZonalOffset
ZonalOffset.ofHoursMinutes(OffsetSign sign, int hours, int minutes)
Static factory method for a shift which has given hour and minute parts.static ZonalOffset
ZonalOffset.ofTotalSeconds(int total)
Creates a shift of the local time relative to UTC timezone in integer seconds.static ZonalOffset
ZonalOffset.ofTotalSeconds(int total, int fraction)
Creates a shift of the local time relative to UTC timezone in integer seconds or fractional seconds.static ZonalOffset
Interpretes a canonical representation as zonal offset.Modifier and TypeMethodDescriptionTransitionHistory.getValidOffsets(GregorianDate localDate, WallTime localTime)
Determines the suitable offsets at given local timestamp..Modifier and TypeMethodDescriptionint
ZonalOffset.compareTo(ZonalOffset obj)
Compares the whole state with sign, hours, minutes, seconds and fractional seconds in ascending order. -
Uses of ZonalOffset in net.time4j.tz.model
Modifier and TypeMethodDescriptionstatic TransitionHistory
TransitionModel.of(ZonalOffset standardOffset, List<DaylightSavingRule> rules)
Creates a new rule-based transition history.static TransitionHistory
TransitionModel.of(ZonalOffset initialOffset, List<ZonalTransition> transitions, List<DaylightSavingRule> rules)
Creates a transition history of both history transitions and rules for future transitions as well. -
Uses of ZonalOffset in net.time4j.tz.other
Modifier and TypeMethodDescriptionMilitaryZone.getOffset()
Yields the associated timezone offset.
Timezone.getExtraOffset(UnixTime)
instead.