| Package | Description |
|---|---|
| net.time4j |
The main package contains four basic types of ISO-8601, namely
PlainDate, PlainTime, PlainTimestamp
and Moment. |
| net.time4j.clock |
Contains miscellaneous clock implementations.
|
| net.time4j.engine |
Defines the common generic schemes and interfaces of chronological
systems.
|
| net.time4j.range |
Interval support.
|
| 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 interface 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,
Timezone tz)
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 | Class and Description |
|---|---|
class |
AbstractClock
Abstract base clock implementation which allows local views within
any timezone.
|
class |
AdjustableClock
Allows miscellaneous adjustments to any clock.
|
class |
DaytimeClock
Represents a connection to a DAYTIME-server following the old norm
RFC 867.
|
class |
FixedClock
Represents a fixed clock which always display the same current time.
|
class |
HttpClock
Represents a connection to a web server via the HTTP-protocol in
order to evaluate the DATE-header of the HTTP-response.
|
class |
NetTimeConnector<C extends NetTimeConfiguration>
Represents an abstract connection object to an internet time server.
|
class |
SntpConnector
Connects to a modern time server using the NTP-protocol.
|
| Modifier and Type | Method and Description |
|---|---|
static AdjustableClock |
AdjustableClock.of(TimeSource<?> source)
Creates a new adjustable clock for given time source.
|
| 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) |
S |
BridgeChronology.createFrom(TimeSource<?> clock,
AttributeQuery attributes) |
| Modifier and Type | Method and Description |
|---|---|
static DateInterval |
DateInterval.ofCurrentWeek(TimeSource clock,
TZID tzid,
Weekday firstDay)
Obtains the current calendar week based on given clock, time zone and first day of week.
|
Copyright © 2014–2021. All rights reserved.