Class TimeProviderBase

    • Constructor Detail

      • TimeProviderBase

        public TimeProviderBase()
    • Method Detail

      • getDateTime

        public abstract org.joda.time.DateTime getDateTime()
        When overridden in derived class, gets the DateTime specifying the current date and time.
        Returns:
        the DateTime specifying the current date and time.
      • getCurrentTime

        public org.joda.time.DateTime getCurrentTime()
      • getDate

        public abstract Date getDate()
        When overridden in derived class, gets the Date specifying the current date and time.
        Returns:
        The Date specifying the current date and time.
      • resetToRealTime

        public static void resetToRealTime()
        Sets the currently used TimeProviderBase to default one which uses system time.
      • getFutureDate

        public Date getFutureDate​(long millis)
        Adds millis to current date
        Parameters:
        millis - milliseconds to add to current date
        Returns:
        The Date specifying future date and time