D
Daniel Waite
The documentation for #wday says that the start-of-week is Sunday.
#cwday says the start-of-week is Monday.
However, in IRB, both methods return the same value. Today is Tuesday
for me, and they're both returning 2. I'm not sure if it's considering
Sunday or Monday as its start, because I dunno if it returns 0 for
start-of-week or 1. The doc makes it sound like it would start at 0, but
that's not something I want to gamble with.
Anyone know what's going on?
#cwday says the start-of-week is Monday.
However, in IRB, both methods return the same value. Today is Tuesday
for me, and they're both returning 2. I'm not sure if it's considering
Sunday or Monday as its start, because I dunno if it returns 0 for
start-of-week or 1. The doc makes it sound like it would start at 0, but
that's not something I want to gamble with.
Anyone know what's going on?