Web lists-archives.com

Re: [PHP] detecting leap years?




Am 2018-01-20 hackte Jeffry Killen in die Tasten:
> Is there a function for detecting leap years?

As far as I know no, but I asked date() for the (day of year)
by feeding date() with "$current_year-12-31"
which should give you 365 or 366.


Thanks in avance

-- 
Michelle Konzack        Miila ITSystems @ TDnet
GNU/Linux Developer     00372-54541400


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php