The isLeapYear() function
Verifies whether the specified year is a leap year.
Description
The function
has the following syntax:
inline bool isLeapYear(uint32 year)year specifies
a year number in the range of SQL_YEAR_MIN to SQL_YEAR_MAX inclusive.Returns
The function returns
a value of true when any of the following are true:
- year%4 is 0
- year%100 is not 0
- (year%100 is 0 and year%400 is 0)
Otherwise, the function returns a value of false.