Calendar.isLeapYear

Indicates whether the specified _year in the current era is a leap _year.

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

Return Value

Type: bool

true is the specified _year is a leap _year; otherwise, false.

Meta