respect-validation/docs/rules/LeapYear.md

30 lines
380 B
Markdown
Raw Normal View History

2015-01-30 09:40:06 +01:00
# LeapYear
- `LeapYear()`
2015-01-30 09:40:06 +01:00
Validates if a year is leap.
```php
v::leapYear()->validate('1988'); // true
2015-01-30 09:40:06 +01:00
```
This validator accepts DateTime instances as well.
## Categorization
- Date and Time
## Changelog
Version | Description
--------|-------------
0.3.9 | Created
***
2015-01-30 09:40:06 +01:00
See also:
2018-12-11 13:31:50 +01:00
- [Date](Date.md)
- [DateTime](DateTime.md)
- [LeapDate](LeapDate.md)
2018-12-11 13:31:50 +01:00
- [Time](Time.md)