On 16 Jan '06, at 11:53 AM, Mason K. wrote:
I’d like code that prints out the name of this month (January) the
month (February) and the one after that (March)
I was delving into the time/date morass over the weekend*, so now I
get to sound like an expert:
Date.today.mon returns the current month number (1…12).
Date::MONTHNAMES is an array of month names.
Don’t forget to use modular arthmetic, of course
*And may I take a moment to gripe about how confusing it is that Ruby
has entirely distinct Time and Date classes, and that there is no
obvious way to convert between them? I spent about an hour on
Saturday trying to find a way to compute the number of days between