home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / educatio / zeller.zip / ZELLER.DOC < prev    next >
Text File  |  1993-08-09  |  7KB  |  121 lines

  1.                                ZELLER
  2.  
  3.             The Julian calendar was instituted by Caesar in 45 B.C. It
  4.         corrected the previous calendar, which assumed that each year
  5.         consisted of 365 days, by declaring that each fourth year would
  6.         contain 366 days, thus effectively allowing 365.25 days for each
  7.         year. It is probable that Caesar's astronomers knew that this was
  8.         slightly too large; in any event, this was noted by the Venerable
  9.         Bede in 730 A.D. The Julian calendar continued in general use
  10.         until 1582, however, when Pope Gregory XIII decreed that years
  11.         divisible by 100 should not be leap years unless also divisible
  12.         by 400. This change was astronomically necessary, but the new
  13.         'stile' was closely associated with the Catholic church and was
  14.         not immediately accepted by everyone. While the first official
  15.         adoptions were made in 1582, the last one was in 1927 (Turkey).
  16.         Switzerland used a "gradual" adoption, starting in 1582 and ending
  17.         in 1812. When making the change from the Julian to the Gregorian
  18.         calendar, some number of days (10 in 1582, 13 at present) must be 
  19.         deleted, since the Julian year is longer than the solar year.
  20.  
  21.             There are numerous programs for finding the day of the week
  22.         for a given date; many of these, like the current program, rely
  23.         upon formulas published by Ch. Zeller (Kalender Formeln, Acta Math.,
  24.         v.9, 1897). The current program is arbitrarily restricted to the
  25.         range of years from -100 to 3000, even though the routines have
  26.         much greater range. Since this program is intended as an aid in
  27.         historical research, the range given should be more than sufficient.
  28.         For any date in this range, the program will give the day of the
  29.         week for any given month,day,year, will display a calendar for any
  30.         given month and year, and will give the date of Easter for any year.
  31.         Either the Julian or the Gregorian calendar may be used. Because 
  32.         of the lack of a generally accepted calendar for the early years of
  33.         the range, some caution must be used when dealing with documents
  34.         written before about 300 AD, and also for those written in countries,
  35.         like Great Britain, which used both dates for some years before
  36.         1752, sometimes using the notations (OS) and (NS) distinguish between
  37.         the "Old Style" (Julian) and the "New Style" (Gregorian). The years
  38.         in which the date of the beginning of the year was changed must
  39.         also be considered; for example, Scotland began using January 1 
  40.         in 1600 while Great Britain continued to use March 25 until 1752. 
  41.         It is clear that dealing with historical dates is not easy; the fact
  42.         that most contempary writers automatically convert the dates given
  43.         in the original sources to the Gregorian calendate from Oct. 15,
  44.         1582 and later does not make the task easier. It studying original
  45.         documents, the routines given here might be useful while later works
  46.         on the same period might give completely different dates. In such
  47.         cases, it might be desirable to force the use of the Gregorian
  48.         calendar, or at least to compare the two.
  49.  
  50.             In the paper cited above, Zeller included an algorithm for the
  51.         Easter, but unfortunately there is a flaw in the method which
  52.         causes it to be off by one week in a number of years. Here I have
  53.         used an algorithm due to Gauss and described by Knuth, The Art of
  54.         Computer Programming, vol. 2, 212-220.
  55.  
  56.             Anyone wishing to use this program for historical work needs
  57.         to know which calendar was used at the time in the country being
  58.         considered. It would obviously also be desirable to know which
  59.         specific dates were omitted when the change to the Gregorian
  60.         calendar was made in that counntry; unfortunately, this last item
  61.         is not always easy to obtain. A list of some of the dates of adoption
  62.         is given below, and may be popped up in the program; these include
  63.         the omitted dates only for the original countries and for Great
  64.         Britain and its (1752) colonies.
  65.  
  66.             It should be noted that this program does not ignore the omitted 
  67.         dates and thus will give an answer, necessarily wrong, for the day
  68.         of the week for a nonexistent date. For example, Oct 10, 1582 is 
  69.         nonexistent in Spain and Sept 5, 1752 in England; since these dates
  70.         are perfectly legal in some other countries, there is no way to avoid
  71.         this kind of error except by entering only legal dates for the country
  72.         being considered, and for this one needs to know the date of adoption 
  73.         of the Gregorian calendar in that country.
  74.  
  75.  
  76.                           OPERATION OF THE PROGRAM
  77.  
  78.             Dates for conversion may be entered in the form mm/dd/yyyy, or
  79.         m d y or m-d-y or ..., or in English: Apr 15, 1992 or 4 july 1776.
  80.         The last quantity entered must be the year, which must always be
  81.         given in full.
  82.  
  83.             Normally, the Julian calendar is used prior to Oct 5, 1582 and
  84.         the Gregorian calendar from Oct 15, 1582. If your concern is with
  85.         dates in Britain and its (1752) colonies, putting a 'B' (upper or 
  86.         lower case) at the end of the year will cause the program to use
  87.         Julian dates until Sep 2, 1752 and Gregorian dates from Sep 14, 1752.
  88.         You may always force the use of the Julian or Gregorian calendar by
  89.         putting a 'J' or a 'G' at the end of the year.
  90.  
  91.              If month, day and year are all entered, the program prints the
  92.         day of the week for that date. If month and year only are entered
  93.         (e.g. "March 1992" or "3/0/1992"), a calender for that month is
  94.         popped up (while the calendar is displayed, the month may be changed,
  95.         within the current year) by pressing PgUp or PgDn). Finally, if a
  96.         year only is entered, the date of Easter for that year is printed.
  97.         To pop up the table of adoption dates, press F1.
  98.  
  99.             Source code (Turbo C) is included. Reports of any errors or
  100.         other difficulties would be appreciated.
  101.  
  102.                                                   B. J. Ball
  103.                                                   3304 Glen Rose Drive
  104.                                                   Austin, TX 78731
  105.  
  106.  
  107.                          Gregorian Adoption Dates
  108.  
  109.             Italy, Spain, Portugal    Oct 1582  Omitted: Oct 5-14
  110.             France                    Dec 1582
  111.             Catholic German states        1583
  112.             Protestant German states      1700
  113.             Great Britain             Sep 1752  Omitted: Sep 3-13
  114.             Sweden                        1753
  115.             Japan                         1873
  116.             China                         1912
  117.             Russia                        1918
  118.             Greece                        1924
  119.             Turkey                        1927
  120.  
  121.