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'
Show source
Register or log in to add new notes.