Method: ActiveSupport::TimeWithZone#rfc2822
- Defined in:
- activesupport/lib/active_support/time_with_zone.rb
#rfc2822 ⇒ Object 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"
194 195 196 |
# File 'activesupport/lib/active_support/time_with_zone.rb', line 194 def rfc2822 to_fs(:rfc822) end |