method

httpdate

v1_9_3_392 - Show latest stable - Class: Time
httpdate()
public

Returns a string which represents the time as rfc1123-date of HTTP-date defined by RFC 2616:

day-of-week, DD month-name CCYY hh:mm:ss GMT

Note that the result is always UTC (GMT).

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

require 'time'