public class NanoTimeUtils extends Object
Constructor and Description |
---|
NanoTimeUtils() |
Modifier and Type | Method and Description |
---|---|
static NanoTime |
getNanoTime(Timestamp ts,
boolean skipConversion) |
static NanoTime |
getNanoTime(Timestamp ts,
boolean skipConversion,
ZoneId timeZoneId)
Gets a NanoTime object, which represents timestamps as nanoseconds since epoch, from a
Timestamp object.
|
static Timestamp |
getTimestamp(NanoTime nt,
boolean skipConversion) |
static Timestamp |
getTimestamp(NanoTime nt,
boolean skipConversion,
ZoneId timeZoneId)
Gets a Timestamp object from a NanoTime object, which represents timestamps as nanoseconds
since epoch.
|
public static NanoTime getNanoTime(Timestamp ts, boolean skipConversion, ZoneId timeZoneId)
public static Timestamp getTimestamp(NanoTime nt, boolean skipConversion, ZoneId timeZoneId)
Copyright © 2022 The Apache Software Foundation. All rights reserved.