public class NanoClock
extends java.time.Clock
Timespec as its
default Clock backend.Timespec.now()| Constructor and Description |
|---|
NanoClock() |
NanoClock(java.time.Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
java.time.ZoneId |
getZone() |
java.time.Instant |
instant() |
NanoClock |
withZone(java.time.ZoneId zone) |
public java.time.ZoneId getZone()
getZone in class java.time.Clockpublic java.time.Instant instant()
instant in class java.time.Clockpublic NanoClock withZone(java.time.ZoneId zone)
withZone in class java.time.ClockCopyright © 2021. All rights reserved.