[PHP] detecting leap years?
- Date: Fri, 19 Jan 2018 17:34:20 -0800
- From: Jeffry Killen <jekillen@xxxxxxxxxxx>
- Subject: [PHP] detecting leap years?
Is there a function for detecting leap years?
I have developed a calendar generation module
to be rendered in html markup is a leap year, so
it can add an extra day to February.
When the host html first loads, the module defaults
to the current year. So it doesn't get to the point that
I am using getDate to determine the current year.
I need to determine if a current year is a leap year.
built in function in php I can translate the js to php.
Thank you for time and attention;
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php