From: matz@... (Yukihiro Matsumoto) Date: 2001-06-06T16:18:47+09:00 Subject: [ruby-talk:16256] Re: Time.week Hi, In message "[ruby-talk:16252] Time.week" on 01/06/06, Mike writes: |The Time class does not have any method to retreive the week number. The only way I found is to use strftime and convert the result to integer. Is there a better way? Date has cweek method which is equivalent to strftime("%W").to_i. |Should such a method be part of the built-in classes? |If yes, we have to deal with the two formats of week numbers. The week method could call week_starting_on_monday or week_starting_on_sunday, depending on system config overridable with a global variable? I'm not sure. Things might be clarify after discussion. matz.