note 53662 added to function.mktime
| From: | venimus777 at yahoo dot com | Date: | Wed, 08 Jun 2005 16:20:45 +0000 |
| Subject: | note 53662 added to function.mktime | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90125@lists.php.net to get a copy of this message | ||
You may consider easier to calculate dates using strtotime() instead of mktime():
<?
date('Y-m-d',strtotime('now +'.$f.' months'));
?>
will produce the date $f($f>=0) months after today.
----
Manual Page -- http://www.php.net/manual/en/function.mktime.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53662
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53662&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53662&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53662&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53662&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53662&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53662&report=yes
Search -- http://master.php.net/manage/user-notes.php