Package one.microstream.time
Class XTime
java.lang.Object
one.microstream.time.XTime
public final class XTime extends Object
-
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)
-
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)
-