isLeapYear

external fun isLeapYear(year: Int): Boolean(source)

Determines if a given date is a leap year.

const leapYear = isLeapYear(2000); // true

Return

True if year is a leap year.

Parameters

year

The year to be tested.

See also