//core/io.islandtime.clock/SystemClock
SystemClock¶
common
abstract class SystemClock : Clock
A clock that provides the time from the current system.
The time zone is treated as an immutable property of the clock, set when it is created. If you wish to follow changes to the system clock's configured time zone, you must create a new SystemClock in response to any time zone changes.
Types¶
Name | Summary |
---|---|
Companion | common object Companion |
Functions¶
Name | Summary |
---|---|
equals | common open operator override fun equals(other: Any?): Boolean |
hashCode | common open override fun hashCode(): Int |
readInstant | common abstract fun readInstant(): Instant Reads the current Instant. |
readMilliseconds | common abstract fun readMilliseconds(): Milliseconds Reads the current number of milliseconds that have elapsed since the Unix epoch of 1970-01-01T00:00 in UTC. |
readPlatformInstant | common abstract fun readPlatformInstant(): PlatformInstant Reads the current PlatformInstant. |
toString | common open override fun toString(): String |
Properties¶
Name | Summary |
---|---|
zone | common abstract val zone: TimeZone The time zone of this clock. |