note 42437 added to function.mktime
| From: | noodle at digital-nw dot com | Date: | Sun, 16 May 2004 23:47:52 +0000 |
| Subject: | note 42437 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69678@lists.php.net to get a copy of this message | ||
If the time has passed and you have not specified a date, mktime will automatically move to the next
date. For example:
$hour = '12';
$mins = '37';
$time = mktime($hour,$mins,0,date('n'),date('d'));
echo date("l dS of F Y h:i:s A",$time);
will return something like:
Monday 17th of May 2004 12:37:00 PM
When in actuality it's Sunday 16th of May.
----
Manual Page -- http://www.php.net/manual/en/function.mktime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42437
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42437&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42437&report=yes
Search -- http://master.php.net/manage/user-notes.php