public class NanoTime
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Method and Description |
---|---|
static long |
getCurrentTimeInNanos() |
static NanoTime |
getNanoTime() |
static NanoTime |
getNanoTimeFromJavaMilliTime(long timeInMillis)
Convert Java time in millis into an instance of NanoTime
|
long |
longValue() |
static void |
setBaseYear(int newBaseYear)
Change the default base year which is the year 2000.
|
java.util.Date |
toDate()
Convert to java.util.Date
|
long |
toMillis()
Convert to standard Java millisecond time
|
java.lang.String |
toString() |
public static long getCurrentTimeInNanos()
public static NanoTime getNanoTime()
public static NanoTime getNanoTimeFromJavaMilliTime(long timeInMillis)
public static void setBaseYear(int newBaseYear)
newBaseYear
- public long longValue()
public java.util.Date toDate()
public long toMillis()
public java.lang.String toString()
toString
in class java.lang.Object