Uses of Class
javax.time.TimeSource
-
Packages that use TimeSource Package Description javax.time Provides classes to manage the continuous time scale including a wrapper for the system clock.javax.time.calendar 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.time Modifier and Type Class Description (package private) static classTimeSource.FixedTimeSourceImplementation of a time-source that always returns the same instant.(package private) static classTimeSource.OffsetSystemTimeSourceImplementation of a time-source that returns the latest time fromSystem.currentTimeMillis()plus an offset.(package private) static classTimeSource.SystemTimeSourceImplementation of a time-source that always returns the latest time fromSystem.currentTimeMillis().Methods in javax.time that return TimeSource Modifier and Type Method Description static 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 TimeSource Modifier and Type Method Description static 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 TimeSource Modifier and Type Field Description private TimeSourceClock.TimeSourceClock. timeSourceThe time-source being used.Methods in javax.time.calendar that return TimeSource Modifier and Type Method Description TimeSourceClock. getSource()Gets the time-source being used to create dates and times.TimeSourceClock.TimeSourceClock. getSource()Gets the time-source being used to create dates and times.Methods in javax.time.calendar with parameters of type TimeSource Modifier and Type Method Description static 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.ClockClock.TimeSourceClock. withSource(TimeSource timeSource)Returns a copy of this clock with a different time-source.ClockClock. withSource(TimeSource timeSource)Returns a copy of this clock with a different time-source.Constructors in javax.time.calendar with parameters of type TimeSource Constructor Description TimeSourceClock(TimeSource timeSource, TimeZone zone)Restricted constructor.
-