method

httpdate

ruby latest stable - Class: Time
httpdate(date)
public

Parses date as an HTTP-date defined by RFC 2616 and converts it to a Time object.

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

See #httpdate for more information on this format.

You must require ‘time’ to use this method.