note 93465 deleted from function.date by thiago

From: Date: Fri, 11 Sep 2009 13:23:46 +0000
Subject: note 93465 deleted from function.date by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160455@lists.php.net to get a copy of this message
Note Submitter: lb at bostontech dot net ---- @ Just.Kevin Thanks for your note... it inspired me to make a compact leap year checking function: function isLeapYear($year = 2100) { return ((($year%4==0) && ($year%100)) || $year%400==0) ? (true):(false); } ... again I'm uncertain if this is going to perform better than the date() function built in, but at least it is lean.

« previous php.notes (#160455) next »