dateLeapYear.php
Table of Contents
Functions
- dateLeapYear() : string
- Returns whether the year of a given date is a leap year.
Functions
dateLeapYear()
Returns whether the year of a given date is a leap year.
dateLeapYear([int|string|null $date = null ]) : string
Constructs an AQL expression in the format:
DATE_LEAPYEAR(date)
where date can be a numeric timestamp or an ISO 8601 date string.
The result is a boolean: true if it is a leap year, false otherwise.
Parameters
- $date : int|string|null = null
-
Numeric timestamp or ISO 8601 date string. Defaults to
DATE_NOW()if null.
Tags
Return values
string —The AQL expression returning a boolean indicating leap year.