Uses of Interface
net.time4j.tz.TZID
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.
Support for the French revolutionary calendar.
Contains miscellaneous clock implementations.
Defines the common generic schemes and interfaces of chronological
systems.
Defines common interfaces for any format support of Time4J.
This package contains the expert-level format- and parse engine of Time4J.
Temporal formatters which access the platform specific resources.
Interval support.
General timezone-API.
Covers IANA-specific timezone topics.
Covers alternative or specialized timezones.
-
Uses of TZID in net.time4j
Modifier and TypeMethodDescriptionGeneralTimestamp.getTimezone()
ZonalClock.getTimezone()
Gets the associated timezone.ZonalDateTime.getTimezone()
Modifier and TypeMethodDescriptionPlainDate.atFirstMoment(TZID tzid)
Creates a new moment which corresponds to this date at earliest valid time at the begin of associated day in given timezone.PlainDate.atStartOfDay(TZID tzid)
Creates a new local timestamp with this date at earliest valid time at the begin of associated day in given timezone.ElementOperator.inTimezone(TZID tzid)
Creates an operator which can adjust aMoment
in the given timezone.PlainTimestamp.inTimezone(TZID tzid)
Combines this local timestamp with given timezone to a global UTC-moment.ZonalElement.inTimezone(TZID tzid)
Creates a function which can query aMoment
in the given timezone.Moment.inZonalView(TZID tzid)
Creates a combination of this moment and given timezone.static ZonalClock
SystemClock.inZonalView(TZID tzid)
Creates a local clock in given timezone.boolean
Does this local timestamp exist in given timezone?PrettyTime.printRelative(UnixTime moment, TZID tzid)
Formats given time point relative to the current time ofPrettyTime.getReferenceClock()
as duration in at most second precision or less.PrettyTime.printRelativeOrDate(PlainDate date, TZID tzid, CalendarUnit maxRelativeUnit, TemporalFormatter<PlainDate> formatter)
Formats given date relative to the current date ofPrettyTime.getReferenceClock()
as duration or as absolute date.<C extends CalendarVariant<C>>
GeneralTimestamp<C>Moment.toGeneralTimestamp(CalendarFamily<C> family, String variant, TZID tzid, StartOfDay startOfDay)
Converts this instance to a general timestamp in given timezone.<C extends Calendrical<?, C>>
GeneralTimestamp<C>Moment.toGeneralTimestamp(Chronology<C> chronology, TZID tzid, StartOfDay startOfDay)
Converts this instance to a general timestamp in given timezone.Moment.toZonalTimestamp(TZID tzid)
Converts this instance to a local timestamp in given timezone.ModifierConstructorDescriptionZonalClock(TimeSource<?> timeSource, TZID tzid)
Constructs a new clock which can yield the current local time in given timezone. -
Uses of TZID in net.time4j.calendar
Modifier and TypeMethodDescriptionstatic ChronoFunction<Moment,HebrewTime>
Obtains the simplified Hebrew time dependent on given moment and a 24-hour-fixed scale. -
Uses of TZID in net.time4j.calendar.astro
Modifier and TypeMethodDescriptionLunarTime.getObserverZoneID()
Obtains the observer timezone which is associated with any calendar date input.Modifier and TypeMethodDescriptionSolarTime.getObserverZoneID()
Obtains the optional observer timezone which might be associated with any calendar date input.Modifier and TypeMethodDescriptionSolarTime.Builder.inTimezone(TZID observerZoneID)
Helps to associate any calendar date input with given timezone.Obtains the timestamp of moonrise in given timezone if it exists.Obtains the timestamp of moonset in given timezone if it exists.static LunarTime.Builder
LunarTime.ofLocation(TZID observerZoneID)
Obtains a builder for creating a new instance of local lunar time.static LunarTime
LunarTime.ofLocation(TZID observerZoneID, double latitude, double longitude)
Obtains the lunar time for given geographical location.static LunarTime
LunarTime.ofLocation(TZID observerZoneID, double latitude, double longitude, int altitude)
Obtains the lunar time for given geographical location.Queries a given calendar date for its associated sunshine data. -
Uses of TZID in net.time4j.calendar.frenchrev
Modifier and TypeMethodDescriptionFrenchRepublicanCalendar.Date.getTimezone()
Always throws an exception. -
Uses of TZID in net.time4j.clock
Modifier and TypeMethodDescriptionAbstractClock.inZonalView(TZID tzid)
Creates a local clock in given timezone. -
Uses of TZID in net.time4j.engine
Modifier and TypeMethodDescriptionChronoDisplay.getTimezone()
Returns the associated timezone ID for display purposes if available.ChronoEntity.getTimezone()
Returns the associated timezone ID for display purposes if available.Modifier and TypeMethodDescriptionabstract int
StartOfDay.getDeviation(CalendarDate calendarDay, TZID tzid)
Yields the start of given calendar day relative to midnight in seconds. -
Uses of TZID in net.time4j.format
Modifier and TypeFieldDescriptionstatic AttributeKey<TZID>
Attributes.TIMEZONE_ID
Attribute denoting the timezone identifier for display purposes.Modifier and TypeMethodDescriptionAttributes.Builder.setTimezone(TZID tzid)
Sets the timezone reference.TemporalFormatter.withTimezone(TZID tzid)
Creates a copy of this formatter with given timezone id which shall be used in formatting or parsing. -
Uses of TZID in net.time4j.format.expert
Modifier and TypeMethodDescriptionstatic ChronoFormatter<Moment>
ChronoFormatter.ofMomentPattern(String pattern, PatternType type, Locale locale, TZID tzid)
Constructs a pattern-based formatter for global timestamp objects.static ChronoFormatter<Moment>
ChronoFormatter.ofMomentStyle(FormatStyle dateStyle, FormatStyle timeStyle, Locale locale, TZID tzid)
Constructs a style-based formatter for moments.static ChronoFormatter<Moment>
ChronoFormatter.ofMomentStyle(DisplayMode dateStyle, DisplayMode timeStyle, Locale locale, TZID tzid)
Deprecated.ChronoFormatter.withTimezone(TZID tzid)
Equivalent towith(Timezone.of(tzid))
.Modifier and TypeMethodDescriptionChronoFormatter.Builder.addLongTimezoneName(Set<TZID> preferredZones)
Adds a long localized timezone name (in specific non-location format).ChronoFormatter.Builder.addShortTimezoneName(Set<TZID> preferredZones)
Adds a short localized timezone name (an abbreviation in specific non-location format).ChronoFormatter.Builder.addTimezoneName(NameStyle style, Set<TZID> preferredZones)
Adds a localized timezone name in given style. -
Uses of TZID in net.time4j.format.platform
Modifier and TypeMethodDescriptionstatic SimpleFormatter<Moment>
SimpleFormatter.ofMomentPattern(String pattern, Locale locale, TZID tzid)
Constructs a pattern-based formatter for global timestamp objects (moments).static SimpleFormatter<Moment>
SimpleFormatter.ofMomentStyle(FormatStyle dateStyle, FormatStyle timeStyle, Locale locale, TZID tzid)
Constructs a style-based formatter for global timestamp objects (moments).static SimpleFormatter<Moment>
SimpleFormatter.ofMomentStyle(DisplayMode dateStyle, DisplayMode timeStyle, Locale locale, TZID tzid)
SimpleFormatter.withTimezone(TZID tzid)
-
Uses of TZID in net.time4j.range
Modifier and TypeMethodDescriptionDateInterval.inTimezone(TZID tzid)
Converts this instance to a moment interval with date boundaries mapped to the midnight cycle in given time zone.TimestampInterval.inTimezone(TZID tzid)
Combines this local timestamp interval with given timezone to a global UTC-interval.static DateInterval
DateInterval.ofCurrentWeek(TimeSource clock, TZID tzid, Weekday firstDay)
Obtains the current calendar week based on given clock, time zone and first day of week.DateInterval.streamPartitioned(DayPartitionRule rule, TZID tzid)
Creates a partitioning stream of moment intervals where every day of this interval is partitioned according to given partitioning rule.MomentInterval.toZonalInterval(TZID tzid)
Converts this instance to a zonal timestamp interval in given timezone. -
Uses of TZID in net.time4j.tz
Modifier and TypeClassDescriptionclass
Represents the shift of a local timestamp relative to UTC timezone usually in full seconds.Modifier and TypeMethodDescriptionabstract TZID
Timezone.getID()
Gets the associated timezone identifier.static TZID
Tries to normalize given timezone identifier on the base of best efforts.static TZID
Equivalent tonormalize(tzid.canonical())
.Modifier and TypeMethodDescriptionTimezone.getAvailableIDs()
Gets all available timezone IDs.Timezone.getAvailableIDs(String provider)
Gets all available timezone IDs for givenZoneModelProvider
.Timezone.getPreferredIDs(Locale locale, boolean smart, String provider)
Gets a provider-specificSet
of preferred timezone IDs for given ISO-3166-country code.Modifier and TypeMethodDescriptionstatic String
Timezone.getDisplayName(TZID tzid, NameStyle style, Locale locale)
Returns the name of a timezone suitable for presentation to users in given style and locale.static TZID
Equivalent tonormalize(tzid.canonical())
.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. -
Uses of TZID in net.time4j.tz.olson
Modifier and TypeInterfaceDescriptioninterface
Identifies a timezone in a standard way.Modifier and TypeClassDescriptionclass
Contains all standard timezone IDs in Africa.class
Contains all standard timezone IDs in America.static class
Contains all standard timezone IDs in Argentina.static class
Contains all standard timezone IDs in USA/Indiana.static class
Contains all standard timezone IDs in USA/Kentucky.static class
Contains all standard timezone IDs in USA/North-Dakota.class
Contains all standard timezone IDs in Antarctica.class
Contains all standard timezone IDs in Asia.class
Contains all standard timezone IDs in Atlantic Ocean.class
Contains all standard timezone IDs in Australia.class
Contains all standard timezone IDs in Europe.class
Contains all standard timezone IDs in Indian Ocean.class
Contains all standard timezone IDs in Pacific Ocean. -
Uses of TZID in net.time4j.tz.other
Modifier and TypeClassDescriptionclass
Represents a military timezone (used by US) where the globe is divided into fixed offset zones using the NATO phonetic alphabet.Modifier and TypeMethodDescriptionResolves this name reference to a set of various zone ids for given country.WindowsZone.resolveSmart(Locale country)
Resolves this name reference to at most one zone id for given country.
ChronoFormatter.ofMomentStyle(FormatStyle, FormatStyle, Locale, TZID)