RE: [PHP] Date problem
| From: | Jennifer Goodie | Date: | Mon, 05 May 2003 23:38:17 +0000 |
| Subject: | RE: [PHP] Date problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146472@lists.php.net to get a copy of this message | ||
Because date is expecting a unix timestamp in epoch seconds and that is not
what you are passing it, so you cannot count on it's output to be correct.
Read the manual on the date() function and its arguments.
http://www.php.net/manual/en/function.date.php
> -----Original Message-----
> From: shaun [mailto:shaun@mania.plus.com]
> Sent: Monday, May 05, 2003 4:28 PM
> To: php-general@lists.php.net
> Subject: [PHP] Date problem
>
>
> Hi,
>
> $file_creation_date = 2003-05-02
> echo "<strong>Created on: </strong>".date("l \\t\h\e jS \o\f
> F",
> $file_creation_date).'<br>';
>
> prints out:
>
> Created on: Thursday the 1st of January
>
> Why is this?