tao-test/app/vendor/respect/validation/docs/rules/LeapYear.md

229 B

LeapYear

  • v::leapYear()

Validates if a year is leap.

v::leapYear()->validate('1988'); // true

This validator accepts DateTime instances as well.


See also: