vlibDate

vLIB logo

6.19. isLeapYear()

Function Description
  isLeapYear (string year)

This function returns true if the given year is a leap year. The parameter year can either be a year in format YYYY or a vlibDate timestamp.

For more information on a vlibDate timestamp, please see the IMPORTANT section.

Example

   if ($date->isLeapYear('2000')) echo '2000 is a leap year';