Re: question on the 'calendar' function

2018-11-21 Thread Calvin Spealman
Sorry, but, that is largely what programming is. On Wed, Nov 21, 2018 at 4:09 PM o1bigtenor wrote: > On Wed, Nov 21, 2018 at 2:47 PM Calvin Spealman > wrote: > > > > Python and the standard library are all tools, but you still need to use > those tools to accomplish something. > > > > This is a

Re: question on the 'calendar' function

2018-11-21 Thread o1bigtenor
On Wed, Nov 21, 2018 at 2:47 PM Calvin Spealman wrote: > > Python and the standard library are all tools, but you still need to use > those tools to accomplish something. > This is am understanding. What I'm doing is making tools to make tools to make tools to make tools to make decisions and I'

Re: question on the 'calendar' function

2018-11-21 Thread Calvin Spealman
Python and the standard library are all tools, but you still need to *use* those tools to accomplish something. On Wed, Nov 21, 2018 at 12:01 PM o1bigtenor wrote: > On Wed, Nov 21, 2018 at 8:09 AM Calvin Spealman > wrote: > > > > You really have the pieces you need here. You can print a whole y

Re: question on the 'calendar' function

2018-11-21 Thread mm0fmf
On 21/11/2018 12:27, o1bigtenor wrote: [Stuff clipped] What I need is to be able to have more than one calendar year options and this function seems to be limited to work with a maximum of only one year at a time. If I not reading the documentation correctly - - - please advise. (Thanking yo

Re: question on the 'calendar' function

2018-11-21 Thread o1bigtenor
On Wed, Nov 21, 2018 at 8:09 AM Calvin Spealman wrote: > > You really have the pieces you need here. You can print a whole year's > calendar with calendar.formatyear() or a single month with > calendar.monthcalendar(). If you need multiple years, call the first more > than once with each year y

Re: question on the 'calendar' function

2018-11-21 Thread Calvin Spealman
You really have the pieces you need here. You can print a whole year's calendar with calendar.formatyear() or a single month with calendar.monthcalendar(). If you need multiple years, call the first more than once with each year you need to print. If you need partial years, print the individual mon

Re: question on the 'calendar' function

2018-11-21 Thread o1bigtenor
On Wed, Nov 21, 2018 at 2:37 AM wrote: > > On Tuesday, November 20, 2018 at 7:53:06 PM UTC+1, o1bigtenor wrote: > > On Tue, Nov 20, 2018 at 11:50 AM Schachner, Joseph > > wrote: > > > > > > It's possible I don't understand the question. The calendar functions > > > are NOT limited to this year

Re: question on the 'calendar' function

2018-11-21 Thread marco . nawijn
On Tuesday, November 20, 2018 at 7:53:06 PM UTC+1, o1bigtenor wrote: > On Tue, Nov 20, 2018 at 11:50 AM Schachner, Joseph > wrote: > > > > It's possible I don't understand the question. The calendar functions are > > NOT limited to this year or any limited range. > > > > Example: > > import cale

Re: question on the 'calendar' function

2018-11-20 Thread Ben Finney
o1bigtenor writes: > On Tue, Nov 20, 2018 at 12:09 PM Ben Finney > wrote: > > o1bigtenor writes: > > > It could be useful to see the longer time spans as weeks rather > > > than as days but seeing the larger time frames only as months > > > would enable the planning that I need to do. > > > >

Re: question on the 'calendar' function

2018-11-20 Thread o1bigtenor
On Tue, Nov 20, 2018 at 12:09 PM Ben Finney wrote: > > o1bigtenor writes: > > > I am in the process of learning my first computer programming language > > (unless g-code counts and then it is my second - - - grin). It > > definitely is a big world out there. > > Welcome, and congratulations on st

Re: question on the 'calendar' function

2018-11-20 Thread o1bigtenor
On Tue, Nov 20, 2018 at 11:50 AM Schachner, Joseph wrote: > > It's possible I don't understand the question. The calendar functions are > NOT limited to this year or any limited range. > > Example: > import calendar > print( calendar.monthcalendar(2022, 12) ) > > Prints lists of dates in each we

Re: question on the 'calendar' function

2018-11-20 Thread Ben Finney
o1bigtenor writes: > I am in the process of learning my first computer programming language > (unless g-code counts and then it is my second - - - grin). It > definitely is a big world out there. Welcome, and congratulations on starting with Python! > The calendar function has a lot of versatil

RE: question on the 'calendar' function

2018-11-20 Thread Schachner, Joseph
It's possible I don't understand the question. The calendar functions are NOT limited to this year or any limited range. Example: import calendar print( calendar.monthcalendar(2022, 12) ) Prints lists of dates in each week of December 2022. It prints: [[0, 0, 0, 1, 2, 3, 4], [5, 6, 7, 8, 9, 10