public final class SystemClock
extends java.time.Clock
Constructor and Description |
---|
SystemClock()
Constructs a new
Clock which reports the actual time. |
Modifier and Type | Method and Description |
---|---|
java.time.ZoneId |
getZone() |
java.time.Instant |
instant() |
long |
millis() |
java.time.Clock |
withZone(java.time.ZoneId zone) |
public SystemClock()
Clock
which reports the actual time.public long millis()
millis
in class java.time.Clock
public java.time.ZoneId getZone()
getZone
in class java.time.Clock
public java.time.Clock withZone(java.time.ZoneId zone)
withZone
in class java.time.Clock
public java.time.Instant instant()
instant
in class java.time.Clock
Copyright © 2023. All Rights Reserved.