Re: date frustrations
| From: | Jason Wong | Date: | Tue, 08 Jul 2003 17:59:29 +0000 |
| Subject: | Re: date frustrations | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154414@lists.php.net to get a copy of this message | ||
On Wednesday 09 July 2003 01:51, Shena Delian O'Brien wrote:
[snip]
> Well I gradually figured out that the date format output by filemtime()
> was not an acceptable natural language date format. filemtime() was
> fetching dates with a dash - ex. 07-08-2003. strtotime() was making
> incorrect timestamps because it doesn't read dates with dashes formatted
> that way.
What version of PHP are you using? And what exactly is the code that you're
using?
filemtime() returns a _unix timestamp_ and will asort() as is.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
A woman without a man is like a fish without a bicycle.
-- Gloria Steinem
*/