note 54629 added to function.time
| From: | php-general at lists dot php dot net | Date: | Sun, 10 Jul 2005 16:26:44 +0000 |
| Subject: | note 54629 added to function.time | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91741@lists.php.net to get a copy of this message | ||
Shazow's example was correct.
<?php
// Months
$elapsedString = round($elapsedTime/60/60/24/12, $roundTo) . " months";
?>
That would be the correct application. It displays how many months are in the year (12), not how
many days are in a month.
----
Manual Page -- http://www.php.net/manual/en/function.time.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54629
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54629&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54629&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54629&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54629&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54629&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54629&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54629&report=yes
Search -- http://master.php.net/manage/user-notes.php