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.Clock
public java.time.Instant instant()
instant
in class java.time.Clock
public NanoClock withZone(java.time.ZoneId zone)
withZone
in class java.time.Clock
Copyright © 2021. All rights reserved.