Clock
interface Clock
Content copied to clipboard
An abstraction providing the current time.
For an implementation that uses the system's clock, see SystemClock. FixedClock is also available for testing purposes.
See also
Functions
read Instant
Link copied to clipboard
Reads the current Instant.
read Milliseconds
Link copied to clipboard
Reads the current number of milliseconds that have elapsed since the Unix epoch of 1970-01-01T00:00 in UTC.
read Platform Instant
Link copied to clipboard
Reads the current PlatformInstant.