Uses of Class
javax.time.calendar.TimeZone
Packages that use TimeZone
Package
Description
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
-
Uses of TimeZone in javax.time.calendar
Subclasses of TimeZone in javax.time.calendarModifier and TypeClassDescription(package private) static final classFixed time-zone.(package private) static final classID based time-zone.Subclasses with type arguments of type TimeZone in javax.time.calendarModifier and TypeClassDescription(package private) static final classRule implementation.Fields in javax.time.calendar declared as TimeZoneModifier and TypeFieldDescriptionstatic final TimeZoneTimeZone.UTCThe time-zone offset for UTC, with an id of 'UTC'.private final TimeZoneClock.TimeSourceClock.zoneThe time-zone being used.private final TimeZoneZonedDateTime.zoneThe time-zone.Fields in javax.time.calendar with type parameters of type TimeZoneModifier and TypeFieldDescriptionprivate static final CalendricalRule<TimeZone> TimeZone.Rule.INSTANCEMethods in javax.time.calendar that return TimeZoneModifier and TypeMethodDescriptionprotected TimeZoneTimeZone.Rule.derive(Calendrical calendrical) ZonedDateTime.getApplicableZone()Calculates the applicable versioned time-zone, such as 'Europe/Paris#2009b'.Clock.getZone()Gets the time-zone being used to create dates and times.Clock.TimeSourceClock.getZone()Gets the time-zone being used to create dates and times.ZonedDateTime.getZone()Gets the time-zone, such as 'Europe/Paris'.static TimeZoneObtains an instance ofTimeZonefrom an identifier ensuring that the identifier is valid and available for use.static TimeZoneObtains an instance ofTimeZoneusing its ID using a map of aliases to supplement the standard zone IDs.static TimeZoneTimeZone.of(ZoneOffset offset) Obtains an instance ofTimeZonerepresenting a fixed time-zone.private static TimeZoneObtains an instance ofTimeZonefrom an identifier.static TimeZoneTimeZone.ofUnchecked(String zoneID) Obtains an instance ofTimeZonefrom an identifier without checking if the time-zone has available rules.ZoneOffset.toTimeZone()Converts this offset to a time-zone.TimeZone.Fixed.withFloatingVersion()TimeZone.ID.withFloatingVersion()abstract TimeZoneTimeZone.withFloatingVersion()Returns a copy of this time-zone with a floating version.TimeZone.Fixed.withLatestVersion()TimeZone.ID.withLatestVersion()abstract TimeZoneTimeZone.withLatestVersion()Returns a copy of this time-zone with the latest available version ID.TimeZone.Fixed.withLatestVersionValidFor(OffsetDateTime dateTime) TimeZone.ID.withLatestVersionValidFor(OffsetDateTime dateTime) abstract TimeZoneTimeZone.withLatestVersionValidFor(OffsetDateTime dateTime) Returns a copy of this time-zone with the latest version that is valid for the specified date-time and offset.TimeZone.Fixed.withVersion(String versionID) TimeZone.ID.withVersion(String versionID) abstract TimeZoneTimeZone.withVersion(String versionID) Returns a copy of this time-zone with the specified version ID.Methods in javax.time.calendar that return types with arguments of type TimeZoneModifier and TypeMethodDescriptionstatic CalendricalRule<TimeZone> TimeZone.rule()Gets the rule forTimeZone.Methods in javax.time.calendar with parameters of type TimeZoneModifier and TypeMethodDescriptionLocalDate.atStartOfDayInZone(TimeZone zone) Returns a zoned date-time from this date at the earliest valid time according to the rules in the time-zone.OffsetDate.atStartOfDayInZone(TimeZone zone) Returns a zoned date-time from this date at the earliest valid time according to the rules in the time-zone ignoring the current offset.Returns a zoned date-time formed from this date-time and the specified time-zone.LocalDateTime.atZone(TimeZone zone, ZoneResolver resolver) Returns a zoned date-time formed from this date-time and the specified time-zone taking control of what occurs in time-line gaps and overlaps.OffsetDateTime.atZoneSameInstant(TimeZone zone) Returns a zoned date-time formed from the instant represented by this date-time and the specified time-zone.OffsetDateTime.atZoneSimilarLocal(TimeZone zone) Returns a zoned date-time formed from this date-time and the specified time-zone.OffsetDateTime.atZoneSimilarLocal(TimeZone zone, ZoneResolver resolver) Returns a zoned date-time formed from this date-time and the specified time-zone taking control of what occurs in time-line gaps and overlaps.static ClockClock.clock(TimeSource timeSource, TimeZone timeZone) Gets a clock that obtains the current date and time using the specified time-source and time-zone.protected abstract OffsetDateTimeZoneResolver.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition gapInfo, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line gap.protected OffsetDateTimeZoneResolvers.Combination.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line gap.protected OffsetDateTimeZoneResolvers.PostGapPreOverlap.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line gap.protected OffsetDateTimeZoneResolvers.PostTransition.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line gap.protected OffsetDateTimeZoneResolvers.PreTransition.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line gap.protected OffsetDateTimeZoneResolvers.PushForward.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line gap.protected OffsetDateTimeZoneResolvers.RetainOffset.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line gap.protected OffsetDateTimeZoneResolvers.Strict.handleGap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line gap.protected abstract OffsetDateTimeZoneResolver.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition overlapInfo, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line overlap.protected OffsetDateTimeZoneResolvers.Combination.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line overlap.protected OffsetDateTimeZoneResolvers.PostGapPreOverlap.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line overlap.protected OffsetDateTimeZoneResolvers.PostTransition.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line overlap.protected OffsetDateTimeZoneResolvers.PreTransition.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line overlap.protected OffsetDateTimeZoneResolvers.PushForward.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line overlap.protected OffsetDateTimeZoneResolvers.RetainOffset.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line overlap.protected OffsetDateTimeZoneResolvers.Strict.handleOverlap(TimeZone zone, ZoneRules rules, ZoneOffsetTransition discontinuity, LocalDateTime newDateTime, OffsetDateTime oldDateTime) Defines the strategy for selecting an offset to use for a local date-time when the local date-time is in a local time-line overlap.static ZonedDateTimeZonedDateTime.of(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, TimeZone zone) Obtains an instance ofZonedDateTimefrom year, month, day, hour, minute, second, nanosecond and time-zone where the date-time must be valid for the time-zone.static ZonedDateTimeZonedDateTime.of(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTimefrom year, month, day, hour, minute, second, nanosecond and time-zone providing a resolver to handle an invalid date-time.static ZonedDateTimeZonedDateTime.of(int year, MonthOfYear monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, TimeZone zone) Obtains an instance ofZonedDateTimefrom year, month, day, hour, minute, second, nanosecond and time-zone where the date-time must be valid for the time-zone.static ZonedDateTimeZonedDateTime.of(int year, MonthOfYear monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTimefrom year, month, day, hour, minute, second, nanosecond and time-zone providing a resolver to handle an invalid date-time.static ZonedDateTimeZonedDateTime.of(DateProvider dateProvider, TimeProvider timeProvider, TimeZone zone) Obtains an instance ofZonedDateTimefrom a local date and time where the date-time must be valid for the time-zone.static ZonedDateTimeZonedDateTime.of(DateProvider dateProvider, TimeProvider timeProvider, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTimefrom a local date and time providing a resolver to handle an invalid date-time.static ZonedDateTimeZonedDateTime.of(DateTimeProvider dateTimeProvider, TimeZone zone) Obtains an instance ofZonedDateTimefrom a local date-time where the date-time must be valid for the time-zone.static ZonedDateTimeZonedDateTime.of(DateTimeProvider dateTimeProvider, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTimefrom a local date-time providing a resolver to handle an invalid date-time.static ZonedDateTimeZonedDateTime.of(OffsetDateTime dateTime, TimeZone zone) Obtains an instance ofZonedDateTimefrom anOffsetDateTimeensuring that the offset provided is valid for the time-zone.static ZonedDateTimeZonedDateTime.ofEpochSeconds(long epochSeconds, TimeZone zone) Obtains an instance ofZonedDateTimeusing seconds from the epoch of 1970-01-01T00:00:00Z.static ZonedDateTimeZonedDateTime.ofInstant(OffsetDateTime dateTime, TimeZone zone) Obtains an instance ofZonedDateTimefrom the instant of anOffsetDateTime.static ZonedDateTimeZonedDateTime.ofInstant(InstantProvider instantProvider, TimeZone zone) Obtains an instance ofZonedDateTimefrom anInstant.private static ZonedDateTimeZonedDateTime.resolve(LocalDateTime dateTime, ZonedDateTime oldDateTime, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTime.final OffsetDateTimeZoneResolver.resolve(TimeZone zone, LocalDateTime newDateTime, ZonedDateTime oldDateTime) Resolves the new local date-time to an offset date-time using the zone.static ClockGets a clock that obtains the current date and time using the system millisecond clock and the specified time-zone.Returns a copy of this clock with a different time-zone.Returns a copy of this clock with a different time-zone.ZonedDateTime.withZoneSameInstant(TimeZone zone) Returns a copy of this ZonedDateTime with a different time-zone, retaining the instant.ZonedDateTime.withZoneSameLocal(TimeZone zone) Returns a copy of this ZonedDateTime with a different time-zone, retaining the local date-time if possible.ZonedDateTime.withZoneSameLocal(TimeZone zone, ZoneResolver resolver) Returns a copy of this ZonedDateTime with a different time-zone, retaining the local date-time if possible.Constructors in javax.time.calendar with parameters of type TimeZoneModifierConstructorDescriptionprivateTimeSourceClock(TimeSource timeSource, TimeZone zone) Restricted constructor.privateZonedDateTime(OffsetDateTime dateTime, TimeZone zone) Constructor.