Interface IterableDate<T>

Represents a date unit than can be iterated over.

interface IterableDate<T> {
    equals(rhs: T): boolean;
    isBefore(rhs: T): boolean;
    next(): T;
}

Type Parameters

  • T

Implemented by

Methods

  • returns true if two date units represents the same date

    Parameters

    • rhs: T

    Returns boolean

  • returns true if this date is before the other (false if they are the same

    Parameters

    • rhs: T

    Returns boolean