Class XTime


  • public final class XTime
    extends Object
    • Constructor Detail

      • XTime

        public XTime()
    • Method Detail

      • 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)
      • currentYear

        public static final int currentYear()