NanoClockHelper Class
- java.
lang. Object - java.
time. Clock - com.
microsoft. bot. schema. NanoClockHelper
- com.
- java.
public class NanoClockHelper
extends java.time.Clock
A customized nanoseconds clock providing access to the current instant, date and time using a time-zone.
Constructor Summary
| Constructor | Description |
|---|---|
| NanoClockHelper() |
Obtains a clock that returns the current instant using the best available system clock with nanoseconds. |
| NanoClockHelper(Clock clock) |
Obtains a clock that returns the current instant using the best available system clock with nanoseconds. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.time.ZoneId | getZone() |
| java.time.Instant | instant() |
| java.time.Clock | withZone(ZoneId zone) |
Methods inherited from java.lang.Object
Methods inherited from java.time.Clock
Constructor Details
NanoClockHelper
public NanoClockHelper()
Obtains a clock that returns the current instant using the best available system clock with nanoseconds.
NanoClockHelper
public NanoClockHelper(Clock clock)
Obtains a clock that returns the current instant using the best available system clock with nanoseconds.
Parameters:
Method Details
getZone
public ZoneId getZone()
Overrides:
NanoClockHelper.getZone()instant
public Instant instant()
Overrides:
NanoClockHelper.instant()withZone
public Clock withZone(ZoneId zone)
Overrides:
NanoClockHelper.withZone(ZoneId zone)Parameters: