Uses of Class
javax.time.TimeSource
Packages that use TimeSource
Package
Description
Provides classes to manage the continuous time scale including a wrapper
for the system clock.
Provides classes to manage the human time scale including date, time,
date-time and time-zone representations.
-
Uses of TimeSource in javax.time
Subclasses of TimeSource in javax.timeModifier and TypeClassDescription(package private) static final class
Implementation of a time-source that always returns the same instant.(package private) static final class
Implementation of a time-source that returns the latest time fromSystem.currentTimeMillis()
plus an offset.(package private) static final class
Implementation of a time-source that always returns the latest time fromSystem.currentTimeMillis()
.Methods in javax.time that return TimeSourceModifier and TypeMethodDescriptionstatic TimeSource
TimeSource.fixed
(InstantProvider fixedInstantProvider) Gets a time-source that always returns the sameInstant
.static TimeSource
TimeSource.offsetSystem
(Duration offset) Gets a time-source that obtains the current instant using the system millisecond clock and adjusts by a fixed offset.static TimeSource
TimeSource.system()
Gets a time-source that obtains the current instant using the system millisecond clock.Methods in javax.time with parameters of type TimeSourceModifier and TypeMethodDescriptionstatic Instant
Instant.now
(TimeSource timeSource) Obtains the current instant from the specified clock. -
Uses of TimeSource in javax.time.calendar
Fields in javax.time.calendar declared as TimeSourceModifier and TypeFieldDescriptionprivate final TimeSource
Clock.TimeSourceClock.timeSource
The time-source being used.Methods in javax.time.calendar that return TimeSourceModifier and TypeMethodDescriptionClock.getSource()
Gets the time-source being used to create dates and times.Clock.TimeSourceClock.getSource()
Gets the time-source being used to create dates and times.Methods in javax.time.calendar with parameters of type TimeSourceModifier and TypeMethodDescriptionstatic Clock
Clock.clock
(TimeSource timeSource, TimeZone timeZone) Gets a clock that obtains the current date and time using the specified time-source and time-zone.static Clock
Clock.clockDefaultZone
(TimeSource timeSource) Gets a clock that obtains the current date and time using the specified time-source and default time-zone.Clock.TimeSourceClock.withSource
(TimeSource timeSource) Returns a copy of this clock with a different time-source.Clock.withSource
(TimeSource timeSource) Returns a copy of this clock with a different time-source.Constructors in javax.time.calendar with parameters of type TimeSourceModifierConstructorDescriptionprivate
TimeSourceClock
(TimeSource timeSource, TimeZone zone) Restricted constructor.