• Gets the details for all the seasons for the specified calendar.

    Returns

    Array of all seasons in the calendar.

    Example

    SimpleCalendar.api.getAllSeasons();
    // Returns an array like this, assuming the Gregorian Calendar
    // [
    // {
    // color: "#fffce8",
    // description : "",
    // icon: "spring,
    // id: "4916a231",
    // name: "Spring",
    // startingDay: 20,
    // startingMonth: 3,
    // sunriseTime: 21600,
    // sunsetTime: 64800
    // },
    // {
    // color: "#f3fff3",
    // description : "",
    // icon: "summer,
    // id: "e596489",
    // name: "Summer",
    // startingDay: 20,
    // startingMonth: 6,
    // sunriseTime: 21600,
    // sunsetTime: 64800
    // },
    // {
    // color: "#fff7f2",
    // description : "",
    // icon: "fall,
    // id: "3f137ee5",
    // name: "Fall",
    // startingDay: 22,
    // startingMonth: 9,
    // sunriseTime: 21600,
    // sunsetTime: 64800
    // },
    // {
    // color: "#f2f8ff",
    // description : "",
    // icon: "winter,
    // id: "92f919a2",
    // name: "Winter",
    // startingDay: 21,
    // startingMonth: 12,
    // sunriseTime: 21600,
    // sunsetTime: 64800
    // }
    // ]

    Parameters

    • calendarId: string = 'active'

      Optional parameter to specify the ID of the calendar to get the list of seasons from. If not provided the current active calendar will be used.

    Returns SeasonData[]