Format Time as httpdate : Time format « Time « Ruby






Format Time as httpdate


last_modified = 'Tue, 05 Sep 2006 16:05:51 GMT'
puts Time.httpdate(last_modified)

 








Related examples in the same category

1.Format Time as rfc822
2.Time Formatting Directives
3.Format time as iso8601
4.Format time as: "%A %A %A!" and "%a %a %a!"