rfc2822() public

Returns a string which represents the time as date-time defined by RFC 2822:

day-of-week, DD month-name CCYY hh:mm:ss zone

where zone is [+-]hhmm.

If self is a UTC time, -0000 is used as zone.

time library should be required to use this method as follows.

require 'time'
Show source
Register or log in to add new notes.