Programming Tutorials

Format a Time object as a String in Ruby

By: Jeeva in Ruby Tutorials on 2009-03-03  

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





Add Comment

* Required information
1000

Comments

No comments yet. Be the first!

Most Viewed Articles (in Ruby )

Latest Articles (in Ruby)