Uses of Class
net.time4j.tz.Timezone
Packages that use Timezone
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Support for various regional calendars.
This package contains the expert-level format- and parse engine of Time4J.
Interval support.
General timezone-API.
-
Uses of Timezone in net.time4j
Fields in net.time4j with type parameters of type TimezoneModifier and TypeFieldDescriptionstatic TemporalType<TimeZone,Timezone>
TemporalType.JAVA_UTIL_TIMEZONE
Bridge between a traditional Java timezone of typejava.util.TimeZone
and the classnet.time4j.tz.Timezone
.Methods in net.time4j with parameters of type TimezoneModifier and TypeMethodDescriptionstatic TimeMetric<IsoUnit,Duration<IsoUnit>>
Helps to evaluate the zonal duration between two timestamps and applies an offset correction if necessary.Creates an operator which can adjust aMoment
in the given timezone.GeneralTimestamp.in(Timezone tz, StartOfDay startOfDay)
Combines this general timestamp with given timezone to a global UTC-moment.Combines this local timestamp with given timezone to a global UTC-moment.Creates a function which can query aMoment
in the given timezone.PlainTimestamp.inZonalView(Timezone tz)
Converts this instance to a combination of UTC-moment, given timezone and its zonal timestamp.PrettyTime.printRelative(UnixTime moment, Timezone tz, TimeUnit precision)
Formats given time point relative to the current time ofPrettyTime.getReferenceClock()
as duration in given precision or less.PrettyTime.printRelativeOrDateTime(UnixTime moment, Timezone tz, TimeUnit precision, long maxdelta, TemporalFormatter<Moment> formatter)
Formats given time point relative to the current time ofPrettyTime.getReferenceClock()
as duration in given precision or as absolute date-time.PrettyTime.printRelativeOrDateTime(UnixTime moment, Timezone tz, TimeUnit precision, CalendarUnit maxRelativeUnit, TemporalFormatter<Moment> formatter)
Formats given time point relative to the current time ofPrettyTime.getReferenceClock()
as duration in given precision or as absolute date-time.Constructors in net.time4j with parameters of type TimezoneModifierConstructorDescriptionZonalClock(TimeSource<?> timeSource, Timezone tz)
Constructs a new clock which can yield the current local time in given timezone. -
Uses of Timezone in net.time4j.calendar
Methods in net.time4j.calendar with parameters of type TimezoneModifier and TypeMethodDescriptionHebrewTime.on(HebrewCalendar date, Timezone tz)
Obtains the moment at this simplified Hebrew time on given date using a fixed 24-hour-scale. -
Uses of Timezone in net.time4j.format.expert
Methods in net.time4j.format.expert with parameters of type TimezoneModifier and TypeMethodDescriptionCreates a copy of this formatter with given timezone which shall be used in formatting or parsing. -
Uses of Timezone in net.time4j.range
Methods in net.time4j.range with parameters of type TimezoneModifier and TypeMethodDescriptionTimestampInterval.getDuration(Timezone tz, IsoUnit... units)
Yields the length of this interval in given units and applies a timezone offset correction .MomentInterval.getNominalDuration(Timezone tz, IsoUnit... units)
Yields the nominal duration of this interval in given timezone and units. -
Uses of Timezone in net.time4j.tz
Methods in net.time4j.tz that return TimezoneModifier and TypeMethodDescriptionstatic Timezone
Gets the timezone for given identifier.static Timezone
Timezone.of(String tzid, TransitionHistory history)
Creates a new synthetic timezone based only on given data.static Timezone
Tries to load the timezone with the first given identifer else with given alternative identifier.static Timezone
Gets the timezone for given identifier.static Timezone
Timezone.ofPlatform()
Obtains the platform timezone with data and rules of the platform.static Timezone
Timezone.ofSystem()
Gets the system timezone.abstract Timezone
Timezone.with(TransitionStrategy strategy)
Creates a copy of this timezone which uses given strategy for resolving local timestamps.Methods in net.time4j.tz with parameters of type TimezoneModifier and TypeMethodDescriptionTransitionStrategy.getOffset(GregorianDate localDate, WallTime localTime, Timezone timezone)
Calculates a suitable offset for given local timestamp.long
TransitionStrategy.resolve(GregorianDate localDate, WallTime localTime, Timezone timezone)
Calculates a suitable global timestamp for given local timestamp.