Format a Time object as a String in Ruby

By: Jeeva Printer Friendly Format    

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


Ask a Question



Most Viewed Articles (in Ruby )

Latest Articles (in Ruby)

Comment on this tutorial