method

httpdate

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

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

For example:

DateTime.httpdate('Sat, 03 Feb 2001 04:05:06 GMT')
                          #=> #<DateTime: 2001-02-03T04:05:06+00:00 ...>