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 classImplementation of a time-source that always returns the same instant.(package private) static final classImplementation of a time-source that returns the latest time fromSystem.currentTimeMillis()plus an offset.(package private) static final classImplementation of a time-source that always returns the latest time fromSystem.currentTimeMillis().Methods in javax.time that return TimeSourceModifier and TypeMethodDescriptionstatic TimeSourceTimeSource.fixed(InstantProvider fixedInstantProvider) Gets a time-source that always returns the sameInstant.static TimeSourceTimeSource.offsetSystem(Duration offset) Gets a time-source that obtains the current instant using the system millisecond clock and adjusts by a fixed offset.static TimeSourceTimeSource.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 InstantInstant.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 TimeSourceClock.TimeSourceClock.timeSourceThe 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 ClockClock.clock(TimeSource timeSource, TimeZone timeZone) Gets a clock that obtains the current date and time using the specified time-source and time-zone.static ClockClock.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 TimeSourceModifierConstructorDescriptionprivateTimeSourceClock(TimeSource timeSource, TimeZone zone) Restricted constructor.