note 96998 deleted from function.mktime by danbrown

From: Date: Fri, 26 Mar 2010 20:10:07 +0000
Subject: note 96998 deleted from function.mktime by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-167439@lists.php.net to get a copy of this message
Note Submitter: ruggie1of1 at hotmail dot com ---- To Carlos (contact at phpmember dot com), The mktime function is not needed for your example, here is a much easier way to find how many days have passed since the beginning of the year: <?php $days_CountingToday = 1+date('z'); $days_NotCountingToday = date('z'); echo "$days_CountingToday days have passed (counting today)\n"; echo "or\n"; echo "$days_NotCountingToday have passed (not counting today)"; ?>

« previous php.notes (#167439) next »