in reply to Converting timestamp to RSS pubDate
So what did you do with HTTP::Date that did not work? It's a lot easier for us to help you if you show us your code.
Just to give you a clue, HTTP::Date::time2str takes epoch time. You can actually make life much easier for yourself by getting the timestamp out of the database in the format that time2str is looking for.
Have a look at UNIX_TIMESTAMP() in the MySQL Reference Manual. Also have a look at the very powerful DATE_FORMAT() function whilst you are there - you could theoretically do the whole thing in MySQL before Perl even sees it. I just find it easier to use HTTP::Date::time2str rather than messing about with % type format strings.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Converting timestamp to RSS pubDate
by htmanning (Friar) on Nov 04, 2008 at 01:29 UTC |