Displaying 1 result from an estimated 1 matches for "word_dat".
Did you mean:
word_date
2008 Apr 22
2
How to convert time from rss feed to another format ?
...to parse the rss feed and use the pubDate field to generate a
field in a xml file to use as an input to simile timeline. RSS returns
the pubDate as :
Sun Feb 24 06:33:32 UTC 2008
But I need it as a string :
"Feb 24 2008 06:33:32 PST"
When I do :
...
@dt=feed_item.time
@dt=@dt.to_date
word_date=''%b %d %Y %H:%M:%S %z''
puts @dt.strftime(word_date)
...
Then I am getting :
Feb 24 2008 00:00:00 +0000
what am I doing wrong?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscri...