[Tutor] how to get the weeks of a month

john fabiani johnf at jfcomputer.com
Mon Mar 4 19:56:00 EST 2019


On 3/4/19 2:47 PM, David Rock wrote:
>> On Mar 4, 2019, at 16:30, Ben Finney <ben+python at benfinney.id.au> wrote:
>>
>> john fabiani <johnf at jfcomputer.com> writes:
>>
>>> My understanding is - a week starts on Monday and ends on Sunday.
>> That's behaviour specific to a timezone. Which one are you using, and
>> does your program know to consult the timezone data for when a week
>> begins and ends?
>
> That’s why I said "Which I’m sure is just a question of “defining the start of the week” properly.”  “Properly” is in the eye of the beholder.  As long as it’s performing the way you expect it to perform, you should be fine.  If all I saw was the output you had, I’d think something was broken because I think in terms of first day being Sunday, so maybe include a note in the output what the First day of the week is if that’s appropriate?
>
>
>> David Rock
> david at graniteweb.com
>
>
I didn't think about that.  I will in the future.
Thanks,
Johnf


More information about the Tutor mailing list