On Sat, Aug 1, 2020 at 1:29 AM dn via Python-list <python-list@python.org> wrote:
> On 31/07/2020 02:52, o1bigtenor wrote: > > I regularly work in planning through multiple years at once. > > This means that I like to have a lot of stuff available in a calendar > > function. > > Python seems to be locked when I need to display more than 1 year at a > > time. > > I don't see a way to display something like 3 years worth of calendar > > starting at a point 23 months from now. > > (I see how to display 1 year at a time but not multiple years.) > > This question seems a little vague. How are you creating this "calendar > function"? Are you using the Python Standard Library calendar, or > perhaps talking about datetime calculations? > > Please copy-paste code showing this "lock". > Maybe its not a lock - - - - but there seems to be no way to display a calendar starting from a date that is 3 years in time frame. python3 Python 3.7.7 (default, Apr 1 2020, 13:48:52) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import calendar >>> print (calendar.calendar(2024,1,1,2,8)) 2024 January February March April May June July August Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 1 2 3 4 1 2 3 1 2 3 4 5 6 7 1 2 3 4 5 1 2 1 2 3 4 5 6 7 1 2 3 4 8 9 10 11 12 13 14 5 6 7 8 9 10 11 4 5 6 7 8 9 10 8 9 10 11 12 13 14 6 7 8 9 10 11 12 3 4 5 6 7 8 9 8 9 10 11 12 13 14 5 6 7 8 9 10 11 15 16 17 18 19 20 21 12 13 14 15 16 17 18 11 12 13 14 15 16 17 15 16 17 18 19 20 21 13 14 15 16 17 18 19 10 11 12 13 14 15 16 15 16 17 18 19 20 21 12 13 14 15 16 17 18 22 23 24 25 26 27 28 19 20 21 22 23 24 25 18 19 20 21 22 23 24 22 23 24 25 26 27 28 20 21 22 23 24 25 26 17 18 19 20 21 22 23 22 23 24 25 26 27 28 19 20 21 22 23 24 25 29 30 31 26 27 28 29 25 26 27 28 29 30 31 29 30 27 28 29 30 31 24 25 26 27 28 29 30 29 30 31 26 27 28 29 30 31 September October November December Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su 1 1 2 3 4 5 6 1 2 3 1 2 3 4 5 6 7 8 7 8 9 10 11 12 13 4 5 6 7 8 9 10 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 15 16 17 18 19 20 11 12 13 14 15 16 17 9 10 11 12 13 14 15 16 17 18 19 20 21 22 21 22 23 24 25 26 27 18 19 20 21 22 23 24 16 17 18 19 20 21 22 23 24 25 26 27 28 29 28 29 30 31 25 26 27 28 29 30 23 24 25 26 27 28 29 30 30 31 I would like to show something like 2024 through the end of 2028. TIA -- https://mail.python.org/mailman/listinfo/python-list