| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.tz |
General timezone-API.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoFunction<Moment,V> |
ZonalElement.in(Timezone tz)
Creates a function which can query a
Moment in the
given timezone. |
Moment |
PlainTimestamp.in(Timezone tz)
Combines this local timestamp with given timezone to a global
UTC-moment.
|
ChronoOperator<Moment> |
ElementOperator.in(Timezone tz)
Creates an operator which can adjust a
Moment in the
given timezone. |
static TimeMetric<IsoUnit,Duration<IsoUnit>> |
Duration.in(Timezone tz,
IsoUnit... units)
Helps to evaluate the zonal duration between two timestamps
and applies an offset correction if necessary.
|
| Modifier and Type | Method and Description |
|---|---|
static Timezone |
Timezone.of(String tzid)
Gets the timezone for given identifier.
|
static Timezone |
Timezone.of(String tzid,
TZID fallback)
Tries to load the timezone with the first given identifer else
with given alternative identifier.
|
static Timezone |
Timezone.of(TZID tzid)
Gets the timezone for given identifier.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
ZonalOffset |
TransitionStrategy.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.
|
Copyright © 2014. All rights reserved.