in reply to Re: Re: Formatting MySQL's TIMESTAMP
in thread Formatting MySQL's TIMESTAMP
If you want to be as non db-specific as possible, take the advice below and forget UNIX_TIMESTAMP. Just select the timestamp-column and use appropriate date-manipulation module to convert it to epoch-format.# epoch-date in $epoch use POSIX; my $formatted_date = POSIX::strftime("%A %d %B %Y @ %I:%M%p %Z",localtime($epoch));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Formatting MySQL's TIMESTAMP
by rendler (Pilgrim) on Mar 21, 2002 at 09:52 UTC |