| 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 |
|---|---|
ZonalOffset |
ZonalMoment.getOffset()
Yields the timezone offset.
|
| Modifier and Type | Method and Description |
|---|---|
ChronoFunction<Moment,V> |
ZonalElement.at(ZonalOffset offset)
Creates a function which can query a
Moment at the
given timezone offset. |
Moment |
PlainTimestamp.at(ZonalOffset offset)
Combines this local timestamp with the given timezone offset
to a global UTC-moment.
|
ChronoOperator<Moment> |
ElementOperator.at(ZonalOffset offset)
Creates an operator which can adjust a
Moment at the
given timezone offset. |
| Modifier and Type | Field and Description |
|---|---|
static ZonalOffset |
ZonalOffset.UTC
Constant for the UTC timezone representing a shift of
0 seconds
with the canonical representation "Z". |
| Modifier and Type | Method and Description |
|---|---|
static ZonalOffset |
ZonalOffset.atLongitude(BigDecimal longitude)
Creates a new shift based on a geographical longitude.
|
static ZonalOffset |
ZonalOffset.atLongitude(OffsetSign sign,
int degrees,
int arcMinutes,
int arcSeconds)
Creates a new shift based on a geographical longitude.
|
ZonalOffset |
TransitionHistory.getInitialOffset()
Return the initial offset no matter if there are any
transitions defined or not.
|
abstract ZonalOffset |
Timezone.getOffset(GregorianDate localDate,
WallTime localTime)
Calculates the offset for given local timestamp.
|
ZonalOffset |
TransitionStrategy.getOffset(GregorianDate localDate,
WallTime localTime,
Timezone timezone)
Calculates a suitable offset for given local timestamp.
|
abstract ZonalOffset |
Timezone.getOffset(UnixTime ut)
Calculates the offset for given global timestamp.
|
static ZonalOffset |
ZonalOffset.ofHours(OffsetSign sign,
int hours)
Static factory method for a shift which has the given full
hour part.
|
static ZonalOffset |
ZonalOffset.ofHoursMinutes(OffsetSign sign,
int hours,
int minutes)
Static factory method for a shift which has given
hour and minute parts.
|
static ZonalOffset |
ZonalOffset.ofTotalSeconds(int total)
Creates a shift of the local time relative to UTC timezone
in integer seconds.
|
static ZonalOffset |
ZonalOffset.ofTotalSeconds(int total,
int fraction)
Creates a shift of the local time relative to UTC timezone
in integer seconds or fractional seconds.
|
| Modifier and Type | Method and Description |
|---|---|
List<ZonalOffset> |
TransitionHistory.getValidOffsets(GregorianDate localDate,
WallTime localTime)
Determines the suitable offsets at given local timestamp..
|
| Modifier and Type | Method and Description |
|---|---|
int |
ZonalOffset.compareTo(ZonalOffset obj)
Compares the whole state with sign, hours, minutes, seconds and
fractional seconds in ascending order.
|
Copyright © 2014. All rights reserved.