DNBrennan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2007-Aug-13 11:38 UTC
Converting date and time formats.
Hi, I am trying to convert the update_at column in my database to this format "Fri, 10 Aug 2007 12:17:00 GMT". How do I do this? Kind regards, Dave. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, DNBrennan-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org wrote:> I am trying to convert the update_at column in my database to this > format "Fri, 10 Aug 2007 12:17:00 GMT". How do I do this?>> t = Time.new=> Mon Aug 13 13:56:42 CEST 2007>> t.strftime("%a, %d %b %Y %H:%M:%S %Z")=> "Mon, 13 Aug 2007 13:56:42 CEST" Lutz -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---