Parallel Gregorian/Julian JD Number Table Calculator
Calendar Span:
BC 19999-Jan-01-Tue/Thu to AD 19999-Dec-31-Fri/Sat
PHP Program By Jay Tanner of Geneva, NY, USA
Gregorian Start Date
Days to Tabulate From Start
d
View/Copy Source Code
Double-Click Within Text Area to Select ALL Text
PARALLEL GREGORIAN/JULIAN JD NUMBER TABLE GREGORIAN_CALENDAR JD_Num | JULIAN_CALENDAR JD_Num | Diff ----------------------------- | ----------------------------- | ------ AD 02026-Feb-19-Thu 2461091 | AD 02026-Feb-19-Wed 2461104 | -13 d AD 02026-Feb-20-Fri 2461092 | AD 02026-Feb-20-Thu 2461105 | -13 d AD 02026-Feb-21-Sat 2461093 | AD 02026-Feb-21-Fri 2461106 | -13 d AD 02026-Feb-22-Sun 2461094 | AD 02026-Feb-22-Sat 2461107 | -13 d AD 02026-Feb-23-Mon 2461095 | AD 02026-Feb-23-Sun 2461108 | -13 d AD 02026-Feb-24-Tue 2461096 | AD 02026-Feb-24-Mon 2461109 | -13 d AD 02026-Feb-25-Wed 2461097 | AD 02026-Feb-25-Tue 2461110 | -13 d AD 02026-Feb-26-Thu 2461098 | AD 02026-Feb-26-Wed 2461111 | -13 d AD 02026-Feb-27-Fri 2461099 | AD 02026-Feb-27-Thu 2461112 | -13 d AD 02026-Feb-28-Sat 2461100 | AD 02026-Feb-28-Fri 2461113 | -13 d AD 02026-Mar-01-Sun 2461101 | AD 02026-Mar-01-Sat 2461114 | -13 d AD 02026-Mar-02-Mon 2461102 | AD 02026-Mar-02-Sun 2461115 | -13 d AD 02026-Mar-03-Tue 2461103 | AD 02026-Mar-03-Mon 2461116 | -13 d AD 02026-Mar-04-Wed 2461104 | AD 02026-Mar-04-Tue 2461117 | -13 d AD 02026-Mar-05-Thu 2461105 | AD 02026-Mar-05-Wed 2461118 | -13 d ----------------------------- | ----------------------------- | ------ GREGORIAN_CALENDAR JD_Num | JULIAN_CALENDAR JD_Num | Diff
Double-Click Within Text Area to Select ALL Text
This program displays a parallel table of signed Gregorian and Julian JD Numbers for both the modern Gregorian calendar and the old Julian Calendar. ############################################################################## The 'Diff' column is the number of days (Gregorian − Julian) to apply to the Julian calendar JD number to obtain the corresponding JD Number on the Gregorian calendar. The difference between the calendars is due to the differences in their rules used to handle leap years and the fact that 10 days were dropped from the cal- endar during the Julian to Gregorian calendar transition in October of 1582 to realign the calendar date of spring (March 21) with the sun again. According to the calendar, spring had drifted to occuring 10 days too early due to the old Julian calendar leap year rule being slightly off by 1 day every 400 years and not being corrected for over 1600 years, until mid-October of 1582. ------------------------------ JULIAN CALENDAR LEAP YEAR RULE Every year that is divisible by 4 is a leap year without exception, including all century years (years ending in -00). --------------------------------- GREGORIAN CALENDAR LEAP YEAR RULE Every year BETWEEN century years that is divisible by 4 is a leap year, but every century year (ending in -00) is a leap year ONLY if it is divisible by 400, otherwise it is a common year. On our modern Gregorian calendar, only one century year out of every 400 years is a leap year. The century year AD 1600 was a leap year. The century year AD 2000 was a leap year. That will not happen again until the year AD 2400. ############################################################################## THE DAYS OF THE WEEK To find the weekday (Sun to Sat), from the signed JD Number value, we compute its cyclic weekday index number starting from Sunday (DoWi = 0). Let: JDNum = Signed Julian Day Number (Span: -5583059 to 9025909) DoWi = DayOfWeek index (0 to 6) Where: 0=Sun, 1=Mon, 2=Tue, 3=Wed, 4=Thu, 5=Fri and 6=Sat DoWi = (7 + ((JDNum + 1) mod 7)) mod 7 Given a source string of 3-letter weekday abbreviations, like: WEEKDAYS = 'SunMonTueWedThuFriSat' The DoWi index value gives us a pointer to where the 3-letter abbreviation is located within the WEEKDAYS string. For example, if the DoWi value is 5, then it refers to 'Fri' at string index location 3*DoWi = 3*5 = 15. This says that the 3-letter abbreviation for Friday ('Fri') starts at string character index 15 within the WEEKDAYS source string. Text strings are indexed from zero in most computer languages, by default. The 3 refers to the number of characters in each weekday abbreviation substring.
PHP Program by PHP Program By Jay Tanner of Geneva, NY, USA
v1.00 - Revised: 1970-January-01-Thursday at Local Time 12:00:00 AM (UTC−05:00)