| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.engine |
Defines the common generic schemes and interfaces of chronological
systems.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SystemClock
Represents a clock which is based on the clock of the underlying operating system.
|
| Modifier and Type | Field and Description |
|---|---|
static TemporalType<Clock,TimeSource<?>> |
TemporalType.CLOCK
Bridge between the JSR-310-class
java.time.Clock and
the class net.time4j.base.TimeSource. |
| Modifier and Type | Method and Description |
|---|---|
TimeSource<?> |
PrettyTime.getReferenceClock()
Yields the reference clock for formatting of relative times.
|
TimeSource<?> |
ZonalClock.getSource()
Gets the associated clock.
|
| Modifier and Type | Method and Description |
|---|---|
SystemClock |
SystemClock.synchronizedWith(TimeSource<?> clock)
Synchronizes this instance with given time source and yields a new copy.
|
PrettyTime |
PrettyTime.withReferenceClock(TimeSource<?> clock)
Yields a changed copy of this instance with given reference
clock.
|
| Constructor and Description |
|---|
ZonalClock(TimeSource<?> timeSource,
String tzid)
Constructs a new clock which can yield the current local time in
given timezone.
|
ZonalClock(TimeSource<?> timeSource,
TZID tzid)
Constructs a new clock which can yield the current local time in
given timezone.
|
| Modifier and Type | Method and Description |
|---|---|
T |
ChronoMerger.createFrom(TimeSource<?> clock,
AttributeQuery attributes)
Creates a new entity which reflects current time.
|
T |
Chronology.createFrom(TimeSource<?> clock,
AttributeQuery attributes) |
Copyright © 2014–2015. All rights reserved.