Hierarchy

Constructors

  • Parameters

    • year: number

      the year for the calendar (e.g. 2000)

    • month: number

      the month for the calendar (0-11)

    • day: number

      the day for the calendar (1-31)

    Returns DayCalendar

Properties

_day: number
_month: number
_year: number

Methods

  • Returns

    The day number of this calendar

    Returns number

  • This method returns the number of days in this month

    Returns

    The number of days in this calendar

    Returns number

  • This method returns true if the current year is a leap year

    Returns

    true if the YearCalendar instance is for a leap year

    Returns boolean

  • This method returns the MonthCalendar for the given month and the year of this instance.

    Returns

    the MonthCalendar for the given month and this YearCalendar

    Parameters

    • month: number

      a month between 0 and 11

    Returns MonthCalendar

  • This method returns all years between two given years as YearCalendar

    Returns

    all years between from and to as YearCalendar

    Parameters

    • from: number

      the begin year

    • to: number

      the end year

    Returns YearCalendar[]

Generated using TypeDoc