module CGI::Util

def rfc1123_date(time)

# Sat, 01 Jan 2000 00:00:00 GMT
CGI.rfc1123_date(Time.now)

Format a +Time+ object as a String using the format specified by RFC 1123.
def rfc1123_date(time)
  time.getgm.strftime("%a, %d %b %Y %T GMT")
end