From: Lou Vanek Date: 2005-07-18T12:40:02+09:00 Subject: Re: Time.format why not just post the library at RAA or rubyforge? -lv nornagon wrote: > Hi all. > > If there's one thing I miss about PHP, it must be date(). PHP's date() > function is similar in purpose to Time.strftime, only with a whole > slew of extra formatting options. For more info, see > http://php.net/date > > However, ruby seems to have no equivalent function. So I made my own. > (Well, not entirely. I copied it from > http://simon.incutio.com/archive/2003/10/07/dateInPython) > > Attached. It works like this: > > Time.now.format "jS M Y" # => "18th Jul 2005" > > I'd like to have this in the core, if people like it.