Julian Calendar and Gregorian Calendar Algorithms
Julian Calendar and Gregorian Calendar Algorithms
Julian Calendar and Gregorian Calendar Algorithms
9 · January
IAMURE 2014 Journal of Mathematics, Engineering & Technology
International
Print ISSN 2244-159X · Online ISSN 2244-1603
International Peer Reviewed Journal
doi: http://dx.doi.org/10.7718/iamure.ijmet.v9i1.794
This Journal is produced by IAMURE Multidisciplinary Research,
an ISO 9001:2008 certified by the AJA Registrars Inc.
Journal Metrics: H Index = 1 from Publish or Perish
ABSTRACT
KEYWORDS
28
Vol. 9 · January 2014
INTRODUCTION
Calendars are used as a system of measurement for time with the day as
smallest calendrical unit by convention (Doggett, 1992). More details about
calendars and history were provided (Grun, 1979.). Based on the orbital
motions of the solar system, time was introduced (McCarthy & Seidelmann,
2009). Astronimical algorithms are necessary to check the accuracy of calendars
(Verkhovsky, 2011; Meeus, 1999). Before the use of the Gregorian calendar,
the Julian calendar was used. Julian calendar has 365.25 days and leap year was
introduced in 46 BCE (Verkhovsky, 2003). This is significantly different from the
length of a solar year (Verkhovsky, 2011). The Gregorian perpetual calendar was
proposed to the Christian world by Pope Gregory X III in 1582 which is closer
to the length of a solar year (Gregory XIII. 1582).
There is a way to convert Julian calendar dates in AD into Gregorian calendar
dates and vice versa by the use of a table (Nautical almanac offices of the United
Kingdom and United States, 1961)
METHODOLOGY
its equivalent number of days. The values of the day of the month, the month
and the year were added. All other dates will follow to be correct.
Given: October 3, 1582
Day of the month = 3
Month = October = 273
Notes: Add the days that passed after the month. There is a separate computation
for leap years. February having 28 days was used regardless if it is a leap year. e.g.
March = January (31 days) + February (28 days) = 59
Year 1582 = 1582 × 365 + 1582/4, disregard the fraction – 365
Notes: A year is equal to 365 days unless it is a leap year that has 366 days. (year
times to 365 + year/4, disregard the fraction comes from here.) Year 1 AD is the start
of AD. (- 365 comes from here.)
February 29 is added every leap year. (If the date be a leap year and (January or
February), deduct 1)
Simplifying, algorithm 1
If the date be a leap year and (January or February), use Formula 1 else use
Formula 2.
Notes: add another day (February 29) during a leap year. The difference (the use
of two formulas) is told here. February 29 is added every leap year. (If the date be a
leap year and (January or February), deduct 1)
Formula 1: Ordinal Number = D + M + Y – 366
Formula 2: Ordinal Number = D + M + Y – 365
Where:
Ordinal Number is the ordinal number of the date.
D is the day of the month.
M is the number of days of the month (January = 0, February = 31,
March = 59, April = 90, May = 120, June = 151, July = 181, August = 212,
30
Vol. 9 · January 2014
Notes: Add the days that passed after the month. There is a separate computation
for leap years. February having 28 days was used regardless if it is a leap year. E.g.
March = January (31 days) + February (28 days) = 59
Year 1582 = 1582 × 365 + 1582/4, disregard the fraction – 1582/100,
disregard the fraction + 1582/400, disregard the fraction – 365
Notes: A year is 365 days unless it is a leap year that has 366 days. (year times to
365 + year/4, disregard the fraction – year/100, disregard the fraction + year/400,
disregard the fraction comes from here.) Year 1 AD is the start of AD. (- 365 comes
from here.)
February 29 is added every leap year. (If the date be a leap year and (January or
February), deduct 1)
31
IAMURE International Journal of Mathematics, Engineering & Technology
Simplifying, algorithm 2
If the date be a leap year and (January or February), use Formula 3 else use
Formula 4.
Notes: Add another day (February 29) during a leap year. The difference (the use
of two formulas) is told here. February 29 is added every leap year. (If the date be a
leap year and (January or February), deduct 1)
Formula 3: Ordinal Number = D + M + Y – 366
Formula 4: Ordinal Number = D + M + Y – 365
Where:
Ordinal Number is the ordinal number of the date.
D is the day of the month.
M is the number of days of the month (January = 0, February = 31,
March = 59, April = 90, May = 120, June = 151, July = 181, August = 212,
September = 243, October = 273, November = 304 and December = 334.).
Y is the number of days of the year (year × 365 + year/4, disregard the
fraction – year/100, disregard the fraction + year/400, disregard the fraction.).
If the date be a leap year and (January or February), use Formula 5 else use
Formula 6.
Notes: Add another day (February 29) during a leap year. The difference (the use
of two formulas) is told here. February 29 is added every leap year. (If the date be a
leap year and (January or February), deduct 1)
32
Vol. 9 · January 2014
After knowing the Ordinal number of the Gregorian calendar date using
Algorithm 2, know the Julian calendar date using Algorithm 3.
If the date be a leap year and (January or February), use Formula 7 else use
Formula 8.
Notes: Add another day (February 29) during a leap year. The difference (the use
of two formulas) is told here. February 29 is added every leap year. (If the date be a
leap year and (January or February), deduct 1)
Formula 7: Ordinal Number = D + M + Y – 364
Formula 8: Ordinal Number = D + M + Y – 363
Where:
Ordinal Number is the ordinal number of the date.
D is the day of the month.
M is the number of days of the month (January = 0, February = 31,
March = 59, April = 90, May = 120, June = 151, July = 181, August = 212,
September = 243, October = 273, November = 304 and December = 334.).
Y is the number of days of the year (year × 365 + year/4, disregard the
fraction – year/100, disregard the fraction + year/400, disregard the fraction.).
33
IAMURE International Journal of Mathematics, Engineering & Technology
After knowing the Ordinal number of the Julian calendar date using Algorithm
1, one comprehends Gregorian calendar date using Algorithm 5.
RESULTS
34
Vol. 9 · January 2014
35
IAMURE International Journal of Mathematics, Engineering & Technology
578101 = D + M + Y
578101 divided by 365.2425 to know the year.
Year = 1582.786779, disregard the fraction
If Formula 7 is used, 578102 = D + M + Y
578102 divided by 365.2425 to know the year.
Year = 1582.789517, disregard the fraction
Either formula 7 or 8 produced
Year = 1582
1582 is not a leap year. Formula 8 must be used.
578101 = D + M + (1582 × 365 + 1582/4, disregard the fraction –
1582/100, disregard the fraction + 1582/400, disregard the fraction)
578101 = D + M + (577430 + 395 – 15 + 3)
578101 = D + M + 577813
288 = D + M
Get the month. October is 273. M = October
288 = D + 273
Get the day. D = 15
Date = October 15, 1582 AD (Gregorian calendar date)
36
Vol. 9 · January 2014
DISCUSSION
1. Days until A.D. 8. Julian calendar dates before 8 A.D. are proleptic, and do
not necessarily match the dates observed in the Roman Empire. (Nautical
almanac offices of the United Kingdom and United States. 1961)
2. The author used a Julian calendar that has a constant table having leap years
occurring every four years. This is one limitation of the paper.
3. Julian calendar dates January 1, 1 AD and January 2, 1 AD when converted
to Gregorian calendar dates will be in Before Christ (BC) which is not
covered here. This is the second limitation of the paper.
4. BC is not included in the algorithms. This is the third limitation of the
paper.
37
IAMURE International Journal of Mathematics, Engineering & Technology
CONCLUSIONS
LITERATURE CITED
Doggett, L. E.
2000 “Calendars,” In: P. K. Seidelmann, Ed., Explanatory Supplement to
the Astronomical Almanac, US Naval Observatory, University Science
Books Com-pany, Mill Valley, 1992. Retrieved on July 19, 2014 from
http://goo.gl/f612mX
Gregory, X. I. I. I.
2002 Inter Gravissimas (W. Spenser & RT Crowley, Trans.).International
Organization for Standardization.(Original work published 1582).
Retrieved on July 19, 2014 from http://goo.gl/BiUIxy
Grun, B.
1979 “The Timetables of History: A Horizontal Link-age of People and
Events Based on Werner Stein’s Kulturfahrplan,” Simon and Schuster,
New York. Retrieved on July 19, 2014 from http://goo.gl/tpr61y
Meeus, J. H.
1991 Astronomical algorithms. Willmann-Bell, Incorporated. Retrieved on
July 19, 2014 from http://goo.gl/Z2hiJh
38
Vol. 9 · January 2014
Verkhovsky, B.
2003 Amended Julian Worldwide Calendar. Annals of European Academy
of Sciences, 330-334. Retrieved on July 19, 2014 from http://goo.gl/
ZexJ56
Verkhovsky, B. S.
2011 Astronomical Algorithms: Amended Multi-millennia Calendar. Int’l
J. of Communications, Network and System Sciences, 4, 483.
doi:10.4236/ijcns.2011.48059. Retrieved on July 19, 2014 from http://
goo.gl/CcsedX
39