instance method
httpdate
Ruby on Rails 5.2.8.1
Since v2.2.3Signature
httpdate()
Returns a string of the object’s date and time in the format used by HTTP requests.
Time.zone.now.httpdate # => "Tue, 01 Jan 2013 04:39:43 GMT"
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 188
def httpdate
utc.httpdate
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 188
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone