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 strftime function probably isn’t documented because it’s not a Ruby thing.
It’s a standard C library function that Ruby just provides an interface to.
That’s not an excuse, of course, but there are more important and Ruby-specific
things whose documentation is a higher priority.
The standard manual page for strftime from section 3 of the Unix Programmer’s
Manual is reproduced in various places around the web. The first google
hit for “strftime man page” was this:
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.)