Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 941 Bytes

File metadata and controls

45 lines (29 loc) · 941 Bytes

LeapYear

  • LeapYear()

Validates if a year is leap.

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

This validator accepts DateTime instances as well.

Templates

LeapYear::TEMPLATE_STANDARD

Mode Template
default {{subject}} must be a valid leap year
inverted {{subject}} must not be a leap year

Template placeholders

Placeholder Description
subject The validated input or the custom validator name (if specified).

Categorization

  • Date and Time

Changelog

Version Description
0.3.9 Created

See also: