Class XTime

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

public final class XTime
extends Object
  • Constructor Details

  • 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 TimeZoneand 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)
    • TimeSpan

      public static final TimeSpan TimeSpan​(long time)
    • 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)