public final class TimestampUtils extends Object
Constructor and Description |
---|
TimestampUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
assignTimeInNanoSec(long timeInNanoSec,
Timestamp t)
Store the given timestamp in nanoseconds into the timestamp object.
|
static long |
daysToNanoseconds(long daysSinceEpoch) |
static long |
doubleToNanoseconds(double d) |
static long |
getTimeNanoSec(Timestamp t) |
static long |
secondsToNanoseconds(long seconds) |
public static void assignTimeInNanoSec(long timeInNanoSec, Timestamp t)
timeInNanoSec
- Given timestamp in nanosecondst
- The timestamp objectpublic static long getTimeNanoSec(Timestamp t)
public static long secondsToNanoseconds(long seconds)
public static long doubleToNanoseconds(double d)
public static long daysToNanoseconds(long daysSinceEpoch)
Copyright © 2017 The Apache Software Foundation. All rights reserved.