| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.base |
Abstract minimum interface of Time4J.
|
| net.time4j.scale |
This package handles the UTC timeline (Corrected Universal Time) and
other time scales.
|
| net.time4j.tz |
General timezone-API.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Moment
Represents an instant/moment on the universal timeline with reference
to the timezone UTC (UTC+00:00 / Greenwich-meridian).
|
class |
ZonalDateTime
Combination of UTC-moment and timezone.
|
| Modifier and Type | Method and Description |
|---|---|
static Moment |
Moment.from(UnixTime ut)
Common conversion method.
|
String |
PrettyTime.printRelative(UnixTime moment,
String tzid)
Formats given time point relative to the current time of
PrettyTime.getReferenceClock() as duration in at most second
precision or less. |
String |
PrettyTime.printRelative(UnixTime moment,
Timezone tz,
TimeUnit precision)
Formats given time point relative to the current time of
PrettyTime.getReferenceClock()
as duration in given precision or less. |
String |
PrettyTime.printRelative(UnixTime moment,
TZID tzid)
Formats given time point relative to the current time of
PrettyTime.getReferenceClock() as duration in at most second
precision or less. |
String |
PrettyTime.printRelativeInStdTimezone(UnixTime moment)
Formats given time point relative to the current time of
PrettyTime.getReferenceClock() as duration in at most second
precision or less - using the system timezone. |
String |
PrettyTime.printRelativeOrDateTime(UnixTime moment,
Timezone tz,
TimeUnit precision,
CalendarUnit maxRelativeUnit,
TemporalFormatter<Moment> formatter)
Formats given time point relative to the current time of
PrettyTime.getReferenceClock()
as duration in given precision or as absolute date-time. |
String |
PrettyTime.printRelativeOrDateTime(UnixTime moment,
Timezone tz,
TimeUnit precision,
long maxdelta,
TemporalFormatter<Moment> formatter)
Formats given time point relative to the current time of
PrettyTime.getReferenceClock()
as duration in given precision or as absolute date-time. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TimeSource<T extends UnixTime>
Represents any kind of clock as source of current world time.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
UniversalTime
Defines a time point respective coordinate on the universal timeline as
the count of seconds relative to UTC epoch [1972-01-01T00:00:00Z] in the
UTC-timezone (Greenwich meridian) and a nanosecond as part of last
second.
|
| Modifier and Type | Method and Description |
|---|---|
abstract ZonalOffset |
Timezone.getDaylightSavingOffset(UnixTime ut)
Calculates the dst-offset for given global timestamp.
|
ZonalTransition |
TransitionHistory.getNextTransition(UnixTime ut)
Queries the next transition after given global timestamp.
|
abstract ZonalOffset |
Timezone.getOffset(UnixTime ut)
Calculates the total offset for given global timestamp.
|
abstract ZonalOffset |
Timezone.getStandardOffset(UnixTime ut)
Calculates the standard offset for given global timestamp.
|
ZonalTransition |
TransitionHistory.getStartTransition(UnixTime ut)
Queries the last transition which defines the offset
for given global timestamp.
|
List<ZonalTransition> |
TransitionHistory.getTransitions(UnixTime startInclusive,
UnixTime endExclusive)
Returns the defined transitions in given POSIX-interval.
|
abstract boolean |
Timezone.isDaylightSaving(UnixTime ut)
Queries if given global timestamp matches daylight saving time
in this timezone?
|
Copyright © 2014–2015. All rights reserved.