module CGI::Util
def rfc1123_date(time)
CGI.rfc1123_date(Time.now)
Format a +Time+ object as a String using the format specified by RFC 1123.
def rfc1123_date(time) t = time.clone.gmtime return format("%s, %.2d %s %.4d %.2d:%.2d:%.2d GMT", RFC822_DAYS[t.wday], t.day, RFC822_MONTHS[t.month-1], t.year, t.hour, t.min, t.sec) end