Re: Fwd: [PHP-NOTES] note 84633 added to function.strtotime
| From: | Daniel Brown | Date: | Wed, 23 Jul 2008 01:20:34 +0000 |
| Subject: | Re: Fwd: [PHP-NOTES] note 84633 added to function.strtotime | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969379148@lists.php.net to get a copy of this message | ||
On Tue, Jul 22, 2008 at 8:51 PM, Thiago H. Pojda <thiago.pojda@gmail.com> wrote:
> Guys,
>
> I'd like to integrate this note as an example to this function, what do you
> think?
There isn't a MySQL-style timestamp in the examples on the page as
it is now. I would just incorporate a one-line bit into Example #1 to
show that the timestamp would generate the date. For example, at the
bottom of the example, insert:
echo strtotime("2008-07-22 21:18:00"), "\n";
Note the use of a comma and space between the strtotime() and
newline character. It's for conformity with the existing code.
You may also want to add a note reminding folks that the order of
that timestamp will make a difference. For example, in some parts of
the world, 2008-07-02 indicates 2 July, 2008, while here in the US and
other places, it means 7 February, 2008.
--
</Daniel P. Brown>
Better prices on dedicated servers:
Intel 2.4GHz/60GB/512MB/2TB $49.99/mo.
Intel 3.06GHz/80GB/1GB/2TB $59.99/mo.
Dedicated servers, VPS, and hosting from $2.50/mo.