method
httpdate
v3.0.0 -
Show latest stable
- Class:
ActiveSupport::TimeWithZone
httpdate()public
No documentation available.
# File activesupport/lib/active_support/time_with_zone.rb, line 146
def httpdate
utc.httpdate
end 1Note
converts a Time object to a string in rfc822 / rfc2822 format
>> time = p.updated_at
=> Fri Jun 20 14:05:30 +0100 2008
>> time.class
=> Time
>> time.httpdate
=> "Fri, 20 Jun 2008 13:05:30 GMT"
.