Package io. islandtime. clock
The default clock implementation, providing access to the current system time at up to nanosecond precision when available.
Types
A clock with a fixed time, suitable for testing.
A clock that provides the time from the current system.
Functions
Gets the current Date from the system clock.
Gets the current DateTime from the system clock.
Gets the current Instant from the system clock.
Gets the current OffsetDateTime from the system clock.
Gets the current OffsetTime from the system clock.
Gets the current Time from the system clock.
Gets the current Year from the system clock.
Gets the current YearMonth from the system clock.
Gets the current ZonedDateTime from the system clock.
Gets the current OffsetDateTime from the provided clock.
Gets the current OffsetTime from the provided clock.
Gets the current ZonedDateTime from the provided clock.
Creates a SystemClock, optionally overriding the system's default time zone with another zone.