HP Forums
Calendar Functions for dates starting in 1582 - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: General Forum (/forum-4.html)
+--- Thread: Calendar Functions for dates starting in 1582 (/thread-17706.html)



Calendar Functions for dates starting in 1582 - Matt Agajanian - 11-14-2021 07:46 PM

Hi all.

Pretty much the majority of calendar functions programs for HP-67/97 start with the year 1900.

Are there calendar function programs which work with dates as early as 1582?

Also, is there an algorithm for the 67/97 which calculates a date + or - from date on or after 1582?

Thanks


RE: Calendar Functions for dates starting in 1582 - Maximilian Hohmann - 11-14-2021 08:30 PM

Hello!

Look no fiurther than here: https://literature.hpcalc.org/community/hp6797-ul-calendars.pdf
(On page 30 you will find the answer to question 2, question 1 is answered by pretty much all pages in that document.)

Regards
Max


RE: Calendar Functions for dates starting in 1582 - Matt Agajanian - 11-19-2021 04:58 AM

Brilliant!!

Thanks!!


RE: Calendar Functions for dates starting in 1582 - Albert Chan - 11-19-2021 01:18 PM

Only 1 calendar needed ... Calculators calendar of 1974 Big Grin





RE: Calendar Functions for dates starting in 1582 - Archilog - 11-19-2021 10:54 PM

(11-19-2021 04:58 AM)Matt Agajanian Wrote:  Brilliant!!

Thanks!!

Twice is better than never: many thanks.


RE: Calendar Functions for dates starting in 1582 - aamiel - 11-22-2021 02:43 PM

Be careful when using 1582 blindly. In most cases it is the wrong year.


RE: Calendar Functions for dates starting in 1582 - Matt Agajanian - 12-14-2021 11:20 PM

Hi. Thanks for the User Solutions Calendars link.

Quite useful. Although the date +/- days works with March 1, 1901-Feb 28, 2100, I need to calculate future/past dates starting with 1582. I’ve tried to simply add the amount of days plus/minus to the generated Julian/Gregorian Date Number, but that doesn’t work.

Could you help me with that, please?

I found this on the web, but it doesn’t include date arithmetic formulas.
Julian/Gregorian Date Numbers

Thanks


RE: Calendar Functions for dates starting in 1582 - Albert Chan - 12-15-2021 12:09 AM

(12-14-2021 11:20 PM)Matt Agajanian Wrote:  Although the date +/- days works with March 1, 1901-Feb 28, 2100, I need to calculate future/past dates starting with 1582. I’ve tried to simply add the amount of days plus/minus to the generated Julian/Gregorian Date Number, but that doesn’t work.

Greogrian calendar repeat itself, every 400 years = 365.2425 * 400 = 146,097 days
Within the 400 years, as long as we do not cross years divisible by 400, 1 century = 36524 days

We can thus "pull" any dates to within working range of Mar 1,1901 - Feb 28, 2100

   JDN(1/1/1983)
= JDN(1/1/1883) + 36524
= JDN(1/1/1783) + 36524*2
= JDN(1/1/1683) + 36524*3
= JDN(1/1/1583) + 146097


RE: Calendar Functions for dates starting in 1582 - Matt Agajanian - 12-15-2021 10:45 PM

Hi again, MoHPC compadres.

It all works now!

Thanks for the advice.

I’m working on an HP-67 version.