Uses of Interface
net.time4j.base.TimeSource
Package
Description
The main package contains four basic types of ISO-8601, namely
PlainDate
, PlainTime
, PlainTimestamp
and Moment
.Contains miscellaneous clock implementations.
Defines the common generic schemes and interfaces of chronological
systems.
Interval support.
-
Uses of TimeSource in net.time4j
Modifier and TypeClassDescriptionclass
Represents a clock which is based on the clock of the underlying operating system.Modifier and TypeFieldDescriptionstatic TemporalType<Clock,TimeSource<?>>
TemporalType.CLOCK
Bridge between the JSR-310-classjava.time.Clock
and the interfacenet.time4j.base.TimeSource
.Modifier and TypeMethodDescriptionTimeSource<?>
PrettyTime.getReferenceClock()
Yields the reference clock for formatting of relative times.TimeSource<?>
ZonalClock.getSource()
Gets the associated clock.Modifier and TypeMethodDescriptionSystemClock.synchronizedWith(TimeSource<?> clock)
Synchronizes this instance with given time source and yields a new copy.PrettyTime.withReferenceClock(TimeSource<?> clock)
Yields a changed copy of this instance with given reference clock.ModifierConstructorDescriptionZonalClock(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. -
Uses of TimeSource in net.time4j.clock
Modifier and TypeClassDescriptionclass
Abstract base clock implementation which allows local views within any timezone.class
Allows miscellaneous adjustments to any clock.class
Represents a connection to a DAYTIME-server following the old norm RFC 867.class
Represents a fixed clock which always display the same current time.class
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
Connects to a modern time server using the NTP-protocol.Modifier and TypeMethodDescriptionstatic AdjustableClock
AdjustableClock.of(TimeSource<?> source)
Creates a new adjustable clock for given time source. -
Uses of TimeSource in net.time4j.engine
Modifier and TypeMethodDescriptionBridgeChronology.createFrom(TimeSource<?> clock, AttributeQuery attributes)
Chronology.createFrom(TimeSource<?> clock, AttributeQuery attributes)
ChronoMerger.createFrom(TimeSource<?> clock, AttributeQuery attributes)
Creates a new entity which reflects current time. -
Uses of TimeSource in net.time4j.range
Modifier and TypeMethodDescriptionstatic 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.