EMAIL PROTECTED]
Sent: Tuesday, July 08, 2003 1:52 PM
To: [EMAIL PROTECTED]
Subject: [PHP] date frustrations
Ok so on a web application I needed to list the files in a directory,
ordered by last modified date.
I was pulling them out in an array, fetching the filemtime() for each
file, and tryi
Ahh, you're right! I had a rogue:
$date = date("m-d-Y", filemtime($fn));
in there. :) Thought I got rid of all of those in testing... my
organization has a standard date format and it must be dashes instead of
slashes, and of course it has to be month, day, year!
Jason Wong wrote:
On Wednesday
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 tim
Ok so on a web application I needed to list the files in a directory,
ordered by last modified date.
I was pulling them out in an array, fetching the filemtime() for each
file, and trying to order them by that date. I was using asort() to sort
the files in an array so they'd list chronologicall
4 matches
Mail list logo