Uses of Interface
java.time.InstantSource
-
Uses of InstantSource in java.time
Modifier and TypeClassDescriptionclass
A clock providing access to the current instant, date and time using a time-zone.Modifier and TypeMethodDescriptionstatic InstantSource
Obtains a source that always returns the same instant.static InstantSource
InstantSource.offset
(InstantSource baseSource, Duration offsetDuration) Obtains a source that returns instants from the specified source with the specified duration added.static InstantSource
InstantSource.system()
Obtains a source that returns the current instant using the best available system clock.static InstantSource
InstantSource.tick
(InstantSource baseSource, Duration tickDuration) Obtains a source that returns instants from the specified source truncated to the nearest occurrence of the specified duration.Modifier and TypeMethodDescriptionstatic InstantSource
InstantSource.offset
(InstantSource baseSource, Duration offsetDuration) Obtains a source that returns instants from the specified source with the specified duration added.static InstantSource
InstantSource.tick
(InstantSource baseSource, Duration tickDuration) Obtains a source that returns instants from the specified source truncated to the nearest occurrence of the specified duration.