Hierarchy

  • DateTime

Implements

Constructors

Accessors

  • get calendarMonth(): number
  • Returns the month number (1-12).

    Returns

    Returns number

  • get day(): number
  • Returns the day of the month. An integer between 1 and 31.

    Returns

    Returns number

  • get dayIndex(): number
  • Returns the day of the month indexed starting at zero.

    Returns

    Returns number

Methods

  • Compares a JS Date with the current instance. Does not evaluate the kind.

    Returns

    Parameters

    • other: Date

    Returns boolean

  • Compares another JsDateConvertible object and returns true if they or their value are equal.

    Returns

    Parameters

    • other: JsDateConvertible

      The other JsDateConvertible object.

    • Optional strict: boolean

      When strict is true, the 'kind' also must match.

    Returns boolean

  • Returns the number of days for the specific year and month.

    Returns

    Parameters

    • year: number
    • month: Month

    Returns number

  • Calculates if the given year is a leap year using the formula: ((year % 4 == 0) && (year % 100 != 0)) || (year % 400 == 0)

    Returns

    Parameters

    • year: number

    Returns boolean

Generated using TypeDoc