Flowdock
method

rfc2822

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Date
rfc2822(p1 = v1, p2 = v2) public

Creates a new Date object by parsing from a string according to some typical RFC 2822 formats.

For example:

Date.rfc2822('Sat, 3 Feb 2001 00:00:00 +0000')
                                          #=> #<Date: 2001-02-03 ...>
Show source
Register or log in to add new notes.