Method: ActiveSupport::TimeWithZone#rfc2822

Defined in:
lib/active_support/time_with_zone.rb

#rfc2822Object Also known as: rfc822

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"


204
205
206
# File 'lib/active_support/time_with_zone.rb', line 204

def rfc2822
  to_fs(:rfc822)
end