note 45829 modified in function.checkdate by tularis

From: Date: Mon, 20 Sep 2004 21:44:11 +0000
Subject: note 45829 modified in function.checkdate by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-77074@lists.php.net to get a copy of this message
--- Editor's Note: --- Actually, you forgot to include that there is no leap year on each full milenium, but is on each century (it's even more complicated tham that) --- end of note --- here's a more direct method to determine if the current year is a leap year.... $yr = (date('Y') % 4 == 0) ? "is leap" : "is not leap"; --was-- here's a more direct method to determine if the current year is a leap year.... $yr = (date('Y') % 4 == 0) ? "is leap" : "is not leap"; http://php.net/manual/en/function.checkdate.php

« previous php.notes (#77074) next »