coldfingertips has asked for the wisdom of the Perl Monks concerning the following question:
I have an image gallery script that SHOULD sort out the images in ASC order (last uploaded picture will be displayed first). For some unknown reason, it doesn't do that.
After doing more scanning of this old code, the timestamp is in gimtime() format "my $timestamp = gmtime();" so it looks like "Sat Jun 25 01:32:22 2005". Is this format an acceptable timestamp that can be sorted in MySQL ASC or DESC?
I have to imagine it can't be and that would explain the problem. And if that were the case, is there a function to convert gmtime back into a sortable time?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: GMtime stamping for MySQL
by shiza (Hermit) on Jun 29, 2005 at 21:51 UTC | |
|
Re: GMtime stamping for MySQL
by fmerges (Chaplain) on Jun 29, 2005 at 22:07 UTC | |
|
Re: GMtime stamping for MySQL
by Adrade (Pilgrim) on Jun 30, 2005 at 05:56 UTC | |
|
Re: GMtime stamping for MySQL
by BUU (Prior) on Jun 29, 2005 at 21:43 UTC | |
|
Re: GMtime stamping for MySQL
by TedPride (Priest) on Jun 30, 2005 at 16:58 UTC |