From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,47b877165af3dad0 X-Google-Attributes: gid1164f8,public From: martin@RADIOGAGA.HARZ.DE (Martin Vorlaender) Subject: Re: Y2K Conversion of Date to Internal Format Date: 1998/08/24 Message-ID: <35e0d570.524144494f47414741@radiogaga.harz.de>#1/1 X-Deja-AN: 384238374 Distribution: world X-Posting-Software: UUPC/extended 1.12j inews (25May94 07:51) References: <35D8AD45.458E8C95@idirect.com> <01bdcac2$35061860$7df84018@fsys.wave.shaw.ca> <01bdcb38$5fecbf40$2e0f4018@fsys.wave.shaw.ca> <35DB845F.918A044@idirect.com> <199808201251.HAA30561@x8.dejanews.com> <35DD8F5C.ED2765B7@idirect.com> Followup-To: comp.sys.dec Organization: home Reply-To: MARTIN@RADIOGAGA.HARZ.DE Newsgroups: comp.sys.dec Jerome Fine (jhfine@idirect.com) wrote: : >Pierre.Bru@spotimage.fr wrote: : > this algorithm is year-2000-proof, leap-year-proof, century-leap-year-proof : > and you can compute julain day with this algorithm back to the begining of : > the gregorian calendar, october 15, 1582. : The best information I have here is the start date of the Gregorian Calendar!!! Here's some more. Don't know where I got it from. cu, Martin Brief History of the Gregorian Calendar --------------------------------------- As decreed by Pope Gregory XIII, October 4, 1582, was followed by October 15, 1582. Thus ended the 1600-year reign of the Julian calendar upon which the Gregorian calendar is based, and thus began the calendar which DECwindows Calendar uses to measure time. Calendars based on sun and moon movement were used even by the ancients, but the first reasonably accurate one was the 365<-day cycle calculated by the Greek Sosigenes. This was the calendar authorized by Julius Caesar in 46 B.C. The Julian calendar (not to be confused with the Julian period; see above) had 3 years of 365 days each, followed by a fourth year of 366 days. The 365<-day cycle was more accurately defined in 730 AD by the Venerable Bede, an Anglo-Saxon monk, who shortened the time by 11 minutes, 14 seconds. This accumulates to a whole day's error every 128 years, or a little more than 3 days every 400 years. This being the Dark Ages, nothing was done to adjust the Calendar, despite Roger Bacon sending a note to Pope Clement IV, informing him of the drifting of the date for the vernal equinox. Later, Pope Sixtus IV did become convinced that another reform was needed and called the German astronomer Regiomontanus to Rome to advise him. Unfortunately, Regiomontanus died of the plague shortly thereafter and the plans died with him. Thursday, October 4, 1582 was the next time the calendar was adjusted. This last day of the Julian calendar was followed by Friday, October 15. So began the Gregorian calendar that we use today, named after Pope Gregory XIII. He commissioned the mathematician Father Christopher Clavius, S.J., to do the necessary calculations, having been authorized to reform the calendar by the Council of Trent in 1545. The Vatican librarian Aloysius Giglio provided a formula for long-range accuracy. He suggested that every fourth year be a leap year, except for century years that are not divisible by 400. Thus 1700, 1800, and 1900 would not be leap years, but 2000 would be, because 2000 is divisible by 400. This rule eliminated 3 leap years every 4 centuries, making the calendar sufficiently correct for most ordinary purposes. Political Acceptance World Wide ------------------------------- The new calendar was adopted at once by France, Spain, Italy, Portugal, and Luxembourg. By 1584, Belgium, parts of the Netherlands, Switzerland, and most Catholic German states had joined, and by 1587, so had Hungary. It was not until 1699-1700 that these countries were joined by the rest of the Netherlands, Denmark, and the Protestant German countries. By the time the British imposed the calendar on all its possessions, in 1752, 11 days needed to be lost. September 2, 1752, was thus decreed to be followed by September 14. In addition, New Year's day was moved back from March 25 to January 1. (For example, before, March 24, 1700 had been followed by March 25, 1701). Among other repercussions, this moved Washington's birth date from February 11, 1731, to February 22, 1732. The following year, 1753, Sweden too adopted the calendar. In 1793, the French Revolutionary government adopted a calendar of 12 months of 30 days each, with 5 extra days in September (6 on leap years). The Gregorian calendar was reinstated in 1806 by Napoleon. Adoption of the calendar in countries outside Europe and its Crown possessions occurred much later, and often in conjunction with political upheaval: Japan in 1873, Egypt in 1875, China in 1912, and Turkey in 1917. In 1918, Russia's revolutionary government decreed that January 31, 1918, would be followed by February 14, 1918. -- | Martin Vorlaender | VMS & WNT programmer OpenVMS: Where do you | work: mv@pdv-systeme.de want to BE today? | http://www.pdv-systeme.de/users/martinv/ | home: martin@radiogaga.harz.de