Calendar.isLeapYear

When overridden, indicates whether the specified year in the specified era is a leap year.

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

Return Value

Type: bool

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

Meta