[issue45971] calendar module issue

2021-12-03 Thread Christian Heimes


Christian Heimes  added the comment:

> Note: Sep. 1752 had only 19 days. ( 11 days skipped )

That statement is only correct for countries where the Church of England was 
predominant: Great Britain and colonies of the British Empire in e.g, North 
America (later known as US of A). Alaska changed later when Russia sold it to 
the US.

Catholic countries such as Italy, Spain, Portugal, and France adopted the 
Gregorian calendar 170 years earlier. For Germany it gets really complicated 
and depends on county, kingdom, and the current religion of sovereign.

--
nosy: +christian.heimes

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45971] calendar module issue

2021-12-02 Thread Vedran Čačić

Vedran Čačić  added the comment:

https://docs.python.org/3/library/calendar.html#module-calendar

The functions and classes defined in this module use an idealized calendar, the 
current Gregorian calendar extended indefinitely in both directions.

https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar

Even if we decide to change this, this is the thing locale should worry about: 
not every place adopted Gregorian Calendar at the same time, nor in the same 
way.

--
nosy: +veky

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45971] calendar module issue

2021-12-02 Thread Venkata Raman S S V


New submission from Venkata Raman S S V :

In Ubuntu 20.04.3 LTS  -  OS Type: 64-bit.

$ cal sep 1752
   September 1752 
Su Mo Tu We Th Fr Sa  
   1  2 14 15 16  
17 18 19 20 21 22 23  
24 25 26 27 28 29 30  



$ python3
Python 3.8.10 (default, Sep 28 2021, 16:10:42) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.

import calendar as cl
yy=1752
mm=9

print(cl.month(yy,mm))
   September 1752
Mo Tu We Th Fr Sa Su
 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 

Note: Sep. 1752 had only 19 days. ( 11 days skipped )

--
components: Extension Modules
messages: 407567
nosy: ssv5088
priority: normal
severity: normal
status: open
title: calendar module issue
versions: Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com