Interface TimePeriod

All Superinterfaces:
All Known Implementing Classes:
Day, FixedMillisecond, Hour, Millisecond, Minute, Month, Quarter, RegularTimePeriod, Second, SimpleTimePeriod, Week, Year

public interface TimePeriod
extends Comparable
A period of time measured to millisecond precision using two instances of java.util.Date.
  • Method Summary

    Modifier and Type Method Description
    Date getEnd()
    Returns the end date/time.
    Date getStart()
    Returns the start date/time.

    Methods inherited from interface java.lang.Comparable

  • Method Details

    • getStart

      Returns the start date/time. This will always be on or before the end date.
      The start date/time (never null).
    • getEnd

      Returns the end date/time. This will always be on or after the start date.
      The end date/time (never null).