Flowdock
rfc2822(date) public

Parses date as date-time defined by RFC 2822 and converts it to a Time object. The format is identical to the date format defined by RFC 822 and updated by RFC 1123.

ArgumentError is raised if date is not compliant with RFC 2822 or Time class cannot represent specified date.

See #rfc2822 for more information on this format.

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

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