Class XTime

java.lang.Object
one.microstream.time.XTime

public final class XTime
extends Object
  • Method Details

    • now

      public static final Date now()
      Short cut for new Date(System.currentTimeMillis()). Returns a new Date instance representing the current time in the current TimeZone and for the current Locale.
      Returns:
      right now!
    • timestamp

      public static final Date timestamp​(int year, int month, int day, int hour, int minute, int second, int milliseconds)
    • timestamp

      public static final Date timestamp​(int year, int month, int day, int hour, int minute, int second)
    • date

      public static final Date date​(int year, int month, int day)
    • timestamp

      public static final Date timestamp​(int year, int month, int day)
    • asGregCal

      public static final GregorianCalendar asGregCal​(Date date)
    • asGregCal

      public static final GregorianCalendar asGregCal​(long timestamp)
    • currentYear

      public static final int currentYear()
    • calculateNanoTimeBudgetBound

      public static final long calculateNanoTimeBudgetBound​(long nanoTimeBudget)