method

httpdate

v1_9_3_125 - Show latest stable - Class: Date
httpdate(p1 = v1, p2 = v2)
public

Creates a new Date object by parsing from a string according to some RFC 2616 format.

For example:

Date.httpdate('Sat, 03 Feb 2001 00:00:00 GMT')
                                          #=> #<Date: 2001-02-03 ...>