Calendar.getMonthsInYear

Returns the number of months in the specified _year of the current era.

  1. uint getMonthsInYear(uint year)
    class Calendar
    const
    uint
    getMonthsInYear
    (
    uint year
    )
  2. uint getMonthsInYear(uint year, uint era)

Return Value

Type: uint

The number of months in the specified _year in the current era.

Meta