isLeapYear()

Determine if the specified year is a leap year.

This function is valid in v2.1.0 to v2.13.1. This function has been downloaded 25 times.

Parameter

{Date|number=} opt_year Optional, Default:new Date()
The year to be tested. If a date is specified the year from that date will be used. If nothing is specified the current year will be used.

Returns

{boolean}
true if year is a leap year, otherwise false.