18 lines
229 B
Markdown
18 lines
229 B
Markdown
|
# 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)
|