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

18 lines
229 B
Markdown
Raw Normal View History

2022-08-29 20:14:13 +02:00
# LeapYear
- `v::leapYear()`
Validates if a year is leap.
```php
v::leapYear()->validate('1988'); // true
```
This validator accepts DateTime instances as well.
***
See also:
* [Date](Date.md)
* [LeapDate](LeapDate.md)