note 96998 added to function.mktime
| From: | ruggie1of1 at hotmail dot com | Date: | Fri, 26 Mar 2010 20:09:02 +0000 |
| Subject: | note 96998 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-167438@lists.php.net to get a copy of this message | ||
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)";
?>
----
Server IP: 64.71.164.2
Probable Submitter: 24.73.126.142
----
Manual Page -- http://www.php.net/manual/en/function.mktime.php
Edit -- https://master.php.net/note/edit/96998
Del: integrated -- https://master.php.net/note/delete/96998/integrated
Del: useless -- https://master.php.net/note/delete/96998/useless
Del: bad code -- https://master.php.net/note/delete/96998/bad+code
Del: spam -- https://master.php.net/note/delete/96998/spam
Del: non-english -- https://master.php.net/note/delete/96998/non-english
Del: in docs -- https://master.php.net/note/delete/96998/in+docs
Del: other reasons-- https://master.php.net/note/delete/96998
Reject -- https://master.php.net/note/reject/96998
Search -- https://master.php.net/manage/user-notes.php