Class TimeDateTimer

  • All Implemented Interfaces:
    Timer

    public class TimeDateTimer
    extends Object
    implements Timer
    • Constructor Detail

      • TimeDateTimer

        public TimeDateTimer​(Interval interval)
      • TimeDateTimer

        public TimeDateTimer​(ZonedDateTime dateTime)
    • Method Detail

      • getRepetitions

        public int getRepetitions()
        Specified by:
        getRepetitions in interface Timer
      • getDueDate

        public long getDueDate​(long fromEpochMillis)
        Returns the instant represented by this timeDate in milliseconds.
        Specified by:
        getDueDate in interface Timer
        Parameters:
        fromEpochMillis - this parameter is ignored since base of this date is always the standard epoch (1970-01-01T00:00:00Z).
        Returns:
        the timeDate as milliseconds since the epoch