note 10045 deleted from function.date by jimw
| From: | jimw@php.net | Date: | Fri, 02 Nov 2001 00:47:30 +0000 |
| Subject: | note 10045 deleted from function.date by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-20064@lists.php.net to get a copy of this message | ||
Estimated time:
Month and days (as perhaps you already know) start from 1.
Therefor if you estimate time using date() function you must deduct (-1) from it to make it
accurate.
i.e: echo "<P>Still ".(date("n", $time)-1)." month and
".(date("j", $time)-1)." days to wait for $something";
will give you "0 month and 20 days" if it's december 11-th and you need to know when
new yearcomes.
Maxim Maletsky