Package | Description |
---|---|
javax.time.calendar |
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
|
Modifier and Type | Field and Description |
---|---|
static TimeZone |
TimeZone.UTC
The time-zone offset for UTC, with an id of 'UTC'.
|
Modifier and Type | Method and Description |
---|---|
TimeZone |
ZonedDateTime.getApplicableZone()
Calculates the applicable versioned time-zone, such as 'Europe/Paris#2009b'.
|
TimeZone |
ZonedDateTime.getZone()
Gets the time-zone, such as 'Europe/Paris'.
|
TimeZone |
Clock.getZone()
Gets the time-zone being used to create dates and times.
|
static TimeZone |
TimeZone.of(String zoneID)
Obtains an instance of
TimeZone from an identifier ensuring that the
identifier is valid and available for use. |
static TimeZone |
TimeZone.of(String timeZoneIdentifier,
Map<String,String> aliasMap)
Obtains an instance of
TimeZone using its ID using a map
of aliases to supplement the standard zone IDs. |
static TimeZone |
TimeZone.of(ZoneOffset offset)
Obtains an instance of
TimeZone representing a fixed time-zone. |
static TimeZone |
TimeZone.ofUnchecked(String zoneID)
Obtains an instance of
TimeZone from an identifier without checking
if the time-zone has available rules. |
TimeZone |
ZoneOffset.toTimeZone()
Converts this offset to a time-zone.
|
abstract TimeZone |
TimeZone.withFloatingVersion()
Returns a copy of this time-zone with a floating version.
|
abstract TimeZone |
TimeZone.withLatestVersion()
Returns a copy of this time-zone with the latest available version ID.
|
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.
|
abstract TimeZone |
TimeZone.withVersion(String versionID)
Returns a copy of this time-zone with the specified version ID.
|
Modifier and Type | Method and Description |
---|---|
static CalendricalRule<TimeZone> |
TimeZone.rule()
Gets the rule for
TimeZone . |
Modifier and Type | Method and Description |
---|---|
ZonedDateTime |
LocalDate.atStartOfDayInZone(TimeZone zone)
Returns a zoned date-time from this date at the earliest valid time according
to the rules in the time-zone.
|
ZonedDateTime |
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.
|
ZonedDateTime |
LocalDateTime.atZone(TimeZone zone)
Returns a zoned date-time formed from this date-time and the specified time-zone.
|
ZonedDateTime |
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.
|
ZonedDateTime |
OffsetDateTime.atZoneSameInstant(TimeZone zone)
Returns a zoned date-time formed from the instant represented by this
date-time and the specified time-zone.
|
ZonedDateTime |
OffsetDateTime.atZoneSimilarLocal(TimeZone zone)
Returns a zoned date-time formed from this date-time and the specified time-zone.
|
ZonedDateTime |
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 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.
|
static ZonedDateTime |
ZonedDateTime.of(DateProvider dateProvider,
TimeProvider timeProvider,
TimeZone zone)
Obtains an instance of
ZonedDateTime 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 of
ZonedDateTime 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 of
ZonedDateTime 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 of
ZonedDateTime from a local date-time
providing a resolver to handle an invalid date-time. |
static ZonedDateTime |
ZonedDateTime.of(int year,
int monthOfYear,
int dayOfMonth,
int hourOfDay,
int minuteOfHour,
int secondOfMinute,
int nanoOfSecond,
TimeZone zone)
Obtains an instance of
ZonedDateTime 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 of
ZonedDateTime 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 of
ZonedDateTime 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 of
ZonedDateTime from year, month,
day, hour, minute, second, nanosecond and time-zone
providing a resolver to handle an invalid date-time. |
static ZonedDateTime |
ZonedDateTime.of(OffsetDateTime dateTime,
TimeZone zone)
Obtains an instance of
ZonedDateTime from an OffsetDateTime
ensuring that the offset provided is valid for the time-zone. |
static ZonedDateTime |
ZonedDateTime.ofEpochSeconds(long epochSeconds,
TimeZone zone)
Obtains an instance of
ZonedDateTime using seconds from the
epoch of 1970-01-01T00:00:00Z. |
static ZonedDateTime |
ZonedDateTime.ofInstant(InstantProvider instantProvider,
TimeZone zone)
Obtains an instance of
ZonedDateTime from an Instant . |
static ZonedDateTime |
ZonedDateTime.ofInstant(OffsetDateTime dateTime,
TimeZone zone)
Obtains an instance of
ZonedDateTime from the instant of an OffsetDateTime . |
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 |
Clock.system(TimeZone zone)
Gets a clock that obtains the current date and time using the system millisecond
clock and the specified time-zone.
|
Clock |
Clock.withZone(TimeZone zone)
Returns a copy of this clock with a different time-zone.
|
ZonedDateTime |
ZonedDateTime.withZoneSameInstant(TimeZone zone)
Returns a copy of this ZonedDateTime with a different time-zone,
retaining the instant.
|
ZonedDateTime |
ZonedDateTime.withZoneSameLocal(TimeZone zone)
Returns a copy of this ZonedDateTime with a different time-zone,
retaining the local date-time if possible.
|
ZonedDateTime |
ZonedDateTime.withZoneSameLocal(TimeZone zone,
ZoneResolver resolver)
Returns a copy of this ZonedDateTime with a different time-zone,
retaining the local date-time if possible.
|
Copyright © 2014. All rights reserved.