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 class
Fixed time-zone.(package private) static final class
ID based time-zone.Fields in javax.time.calendar declared as TimeZoneModifier and TypeFieldDescriptionstatic final TimeZone
TimeZone.UTC
The time-zone offset for UTC, with an id of 'UTC'.private final TimeZone
Clock.TimeSourceClock.zone
The time-zone being used.private final TimeZone
ZonedDateTime.zone
The time-zone.Fields in javax.time.calendar with type parameters of type TimeZoneModifier and TypeFieldDescriptionprivate static final CalendricalRule<TimeZone>
TimeZone.Rule.INSTANCE
Methods in javax.time.calendar that return TimeZoneModifier and TypeMethodDescriptionprotected TimeZone
TimeZone.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 TimeZone
Obtains an instance ofTimeZone
from an identifier ensuring that the identifier is valid and available for use.static TimeZone
Obtains an instance ofTimeZone
using its ID using a map of aliases to supplement the standard zone IDs.static TimeZone
TimeZone.of
(ZoneOffset offset) Obtains an instance ofTimeZone
representing a fixed time-zone.private static TimeZone
Obtains an instance ofTimeZone
from an identifier.static TimeZone
TimeZone.ofUnchecked
(String zoneID) Obtains an instance ofTimeZone
from 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 TimeZone
TimeZone.withFloatingVersion()
Returns a copy of this time-zone with a floating version.TimeZone.Fixed.withLatestVersion()
TimeZone.ID.withLatestVersion()
abstract TimeZone
TimeZone.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 TimeZone
TimeZone.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 TimeZone
TimeZone.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 Clock
Clock.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 OffsetDateTime
ZoneResolver.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolver.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 OffsetDateTime
ZoneResolvers.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 ZonedDateTime
ZonedDateTime.of
(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, TimeZone zone) Obtains an instance ofZonedDateTime
from year, month, day, hour, minute, second, nanosecond and time-zone where the date-time must be valid for the time-zone.static ZonedDateTime
ZonedDateTime.of
(int year, int monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTime
from year, month, day, hour, minute, second, nanosecond and time-zone providing a resolver to handle an invalid date-time.static ZonedDateTime
ZonedDateTime.of
(int year, MonthOfYear monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, TimeZone zone) Obtains an instance ofZonedDateTime
from year, month, day, hour, minute, second, nanosecond and time-zone where the date-time must be valid for the time-zone.static ZonedDateTime
ZonedDateTime.of
(int year, MonthOfYear monthOfYear, int dayOfMonth, int hourOfDay, int minuteOfHour, int secondOfMinute, int nanoOfSecond, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTime
from year, month, day, hour, minute, second, nanosecond and time-zone providing a resolver to handle an invalid date-time.static ZonedDateTime
ZonedDateTime.of
(DateProvider dateProvider, TimeProvider timeProvider, TimeZone zone) Obtains an instance ofZonedDateTime
from a local date and time where the date-time must be valid for the time-zone.static ZonedDateTime
ZonedDateTime.of
(DateProvider dateProvider, TimeProvider timeProvider, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTime
from a local date and time providing a resolver to handle an invalid date-time.static ZonedDateTime
ZonedDateTime.of
(DateTimeProvider dateTimeProvider, TimeZone zone) Obtains an instance ofZonedDateTime
from a local date-time where the date-time must be valid for the time-zone.static ZonedDateTime
ZonedDateTime.of
(DateTimeProvider dateTimeProvider, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTime
from a local date-time providing a resolver to handle an invalid date-time.static ZonedDateTime
ZonedDateTime.of
(OffsetDateTime dateTime, TimeZone zone) Obtains an instance ofZonedDateTime
from anOffsetDateTime
ensuring that the offset provided is valid for the time-zone.static ZonedDateTime
ZonedDateTime.ofEpochSeconds
(long epochSeconds, TimeZone zone) Obtains an instance ofZonedDateTime
using seconds from the epoch of 1970-01-01T00:00:00Z.static ZonedDateTime
ZonedDateTime.ofInstant
(OffsetDateTime dateTime, TimeZone zone) Obtains an instance ofZonedDateTime
from the instant of anOffsetDateTime
.static ZonedDateTime
ZonedDateTime.ofInstant
(InstantProvider instantProvider, TimeZone zone) Obtains an instance ofZonedDateTime
from anInstant
.private static ZonedDateTime
ZonedDateTime.resolve
(LocalDateTime dateTime, ZonedDateTime oldDateTime, TimeZone zone, ZoneResolver resolver) Obtains an instance ofZonedDateTime
.final OffsetDateTime
ZoneResolver.resolve
(TimeZone zone, LocalDateTime newDateTime, ZonedDateTime oldDateTime) Resolves the new local date-time to an offset date-time using the zone.static Clock
Gets 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 TimeZoneModifierConstructorDescriptionprivate
TimeSourceClock
(TimeSource timeSource, TimeZone zone) Restricted constructor.private
ZonedDateTime
(OffsetDateTime dateTime, TimeZone zone) Constructor.