Sauf que Python fournit le module datetime qui gère des dates de l'année 1 à 9999.
Qui les gère, mais vite fait:
The papal bull of February 1582 decreed that 10 days should be dropped
from October 1582 so that 15 October should follow immediately after
4 October, and from then on the reformed calendar should be used.
This was observed in Italy, Poland, Portugal, and Spain. Other Catholic
countries followed shortly after, but Protestant countries were
reluctant to change, and the Greek orthodox countries didn't change
until the start of the 1900s.
(Voir https://www.tondering.dk/claus/cal/gregorian.php, notamment la section "When did country X change from the Julian to the Gregorian calendar?" avec mention spéciale pour nos amis suédois!)
Les calculs fait par Python datetetime ne sont probablement justes que pour l'époque contemporaine.
[^] # Re: Nanosecondes
Posté par Michaël (site web personnel) . En réponse au journal En évoquant Facebook. Évalué à 5. Dernière modification le 28 janvier 2018 à 17:48.
Qui les gère, mais vite fait:
(Voir https://www.tondering.dk/claus/cal/gregorian.php, notamment la section "When did country X change from the Julian to the Gregorian calendar?" avec mention spéciale pour nos amis suédois!)
Les calculs fait par Python datetetime ne sont probablement justes que pour l'époque contemporaine.