Package one.microstream.time
Class XTime
java.lang.Object
one.microstream.time.XTime
public final class XTime extends Object
-
Constructor Summary
Constructors Constructor Description XTime()
-
Method Summary
Modifier and Type Method Description static GregorianCalendar
asGregCal(long timestamp)
static GregorianCalendar
asGregCal(Date date)
static long
calculateNanoTimeBudgetBound(long nanoTimeBudget)
static int
currentYear()
static Date
date(int year, int month, int day)
static Date
now()
Short cut fornew Date(System.currentTimeMillis())
.static Date
timestamp(int year, int month, int day)
static Date
timestamp(int year, int month, int day, int hour, int minute, int second)
static Date
timestamp(int year, int month, int day, int hour, int minute, int second, int milliseconds)
-
Constructor Details
-
XTime
public XTime()
-
-
Method Details
-
now
Short cut fornew Date(System.currentTimeMillis())
. Returns a newDate
instance representing the current time in the currentTimeZone
and for the currentLocale
.- Returns:
- right now!
-
timestamp
public static final Date timestamp(int year, int month, int day, int hour, int minute, int second, int milliseconds) -
timestamp
-
date
-
timestamp
-
asGregCal
-
asGregCal
-
currentYear
public static final int currentYear() -
calculateNanoTimeBudgetBound
public static final long calculateNanoTimeBudgetBound(long nanoTimeBudget)
-