instance method
rfc2822
Ruby on Rails 7.0.10
Since v2.2.3Signature
rfc2822()
Returns a string of the object’s date and time in the RFC 2822 standard format.
Time.zone.now.rfc2822 # => "Tue, 01 Jan 2013 04:51:39 +0000"
Source
# File activesupport/lib/active_support/time_with_zone.rb, line 204
def rfc2822
to_fs(:rfc822)
end
Defined in activesupport/lib/active_support/time_with_zone.rb line 204
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::TimeWithZone