Re: [Tutor] how to get the weeks of a month

2019-03-04 Thread Mark Lawrence
On 04/03/2019 22:12, john fabiani wrote: On 3/4/19 1:35 PM, David Rock wrote: On Mar 4, 2019, at 15:28, john fabiani wrote: I knew there was a simple why to get it done!  But where is it off my a day? comparing $ cal   March 2019 Su Mo Tu We Th Fr Sa 1  2   3  4  5 

Re: [Tutor] how to get the weeks of a month

2019-03-04 Thread john fabiani
On 3/4/19 2:47 PM, David Rock wrote: On Mar 4, 2019, at 16:30, Ben Finney wrote: john fabiani 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

Re: [Tutor] how to get the weeks of a month

2019-03-04 Thread Alan Gauld via Tutor
On 04/03/2019 22:30, Ben Finney wrote: > john fabiani 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?

Re: [Tutor] how to get the weeks of a month

2019-03-04 Thread David Rock
> On Mar 4, 2019, at 16:30, Ben Finney wrote: > > john fabiani 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 >

Re: [Tutor] how to get the weeks of a month

2019-03-04 Thread Ben Finney
john fabiani 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? https://www.timeanddate.com/calendar/days/>

Re: [Tutor] how to get the weeks of a month

2019-03-04 Thread john fabiani
On 3/4/19 1:35 PM, David Rock wrote: On Mar 4, 2019, at 15:28, john fabiani wrote: I knew there was a simple why to get it done! But where is it off my a day? comparing $ cal March 2019 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19

Re: [Tutor] how to get the weeks of a month

2019-03-04 Thread David Rock
> On Mar 4, 2019, at 15:28, john fabiani wrote: > > I knew there was a simple why to get it done! But where is it off my a day? > comparing $ cal March 2019 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

Re: [Tutor] how to get the weeks of a month

2019-03-04 Thread john fabiani
On 3/4/19 1:15 PM, David Rock wrote: On Mar 4, 2019, at 13:19, Alan Gauld via Tutor wrote: On 04/03/2019 18:54, john fabiani wrote: I need to print out the weeks of the month - given any month and any year. I'm not totally clear how you define a week. EDIT: OK I see the comment at the

Re: [Tutor] how to get the weeks of a month

2019-03-04 Thread David Rock
> On Mar 4, 2019, at 13:19, Alan Gauld via Tutor wrote: > > On 04/03/2019 18:54, john fabiani wrote: > >> I need to print out the weeks of the month - given any month and any year. > > I'm not totally clear how you define a week. > > EDIT: OK I see the comment at the end now. > >> For

Re: [Tutor] how to get the weeks of a month

2019-03-04 Thread Alan Gauld via Tutor
On 04/03/2019 18:54, john fabiani wrote: > I need to print out the weeks of the month - given any month and any year. > I'm not totally clear how you define a week. In your example the first week starts on Friday and ends on Sunday. Subsequent weeks start on Monday and run to Sunday. So, is

Re: [Tutor] how to get the weeks of a month

2019-03-04 Thread Mark Lawrence
On 04/03/2019 18:54, john fabiani wrote: Hi everyone, I'm not exactly a newbie but I can't seem to solve this problem. I need to print out the weeks of the month - given any month and any year. For example this month would have: 3/1/2019 - 3/3/2019   # notice that this a short week 3/4/2019

[Tutor] how to get the weeks of a month

2019-03-04 Thread john fabiani
Hi everyone, I'm not exactly a newbie but I can't seem to solve this problem. I need to print out the weeks of the month - given any month and any year. For example this month would have: 3/1/2019 - 3/3/2019   # notice that this a short week 3/4/2019 - 3/10/2019 3/11/2019 - 3/17/2019