The TimeSpan class is used for representing time interval that is the difference between two times measured in a number of days, hours, minutes, and seconds. TimeSpan cannot be negative.

Implements

Constructors

Methods

  • Will return endDate relative to a given startDate argument.

    Parameters

    • startDate: Date = ...

    Returns Date

    {new Date()} - current date
    
  • Will return startDate relative to a given endDate argument.

    Parameters

    • endDate: Date = ...

    Returns Date

    {new Date()} - current date