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
Methods in javax.time that return TimeSource Modifier and Type Method Description static 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 TimeSource Modifier and Type Method Description static Instant
Instant. now(TimeSource timeSource)
Obtains the current instant from the specified clock. -
Uses of TimeSource in javax.time.calendar
Methods in javax.time.calendar that return TimeSource Modifier and Type Method Description TimeSource
Clock. 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 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
Clock. withSource(TimeSource timeSource)
Returns a copy of this clock with a different time-source.
-