Robo wrote:
>>I believe Time#strftime() is what you need
> 
> 
> Is there doc for that function? I looked it up in ruby-doc.org, it has at
> least one line line comment on every method in the Date class except for the
> strftime() which is completely blank.

> 
> So, how do I find info on characters it recognise and how it intepret each
> character? PHP has a table in the link in my first post, I looked at Ruby's
> source for strftime(), and the formats are not quite the same.


The rdoc for this in ruby 1.9 is, I believe, accurate for 1.8 as well

http://www.ruby-doc.org/docs/rdoc/1.9/
(It's a frameset, so i don't have a link directly to the Time lib, but 
you can browser the index in the top left.)

James