method
rfc1123_date
v2_2_9 -
Show latest stable
- Class:
CGI::Util
rfc1123_date(time)public
Format a Time object as a String using the format specified by RFC 1123.
CGI::rfc1123_date(Time.now) # Sat, 01 Jan 2000 00:00:00 GMT
rfc1123_date(time)Format a Time object as a String using the format specified by RFC 1123.
CGI::rfc1123_date(Time.now) # Sat, 01 Jan 2000 00:00:00 GMT