HP Forums
HP-41C Time Module: Calendar Routines - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: HP-41C Time Module: Calendar Routines (/thread-175684.html)



HP-41C Time Module: Calendar Routines - Thomas Klemm - 12-09-2010

In this thread I've noted:

Quote:
I haven't analyzed the whole program yet but this algorithm is used:

if m <= 2:
m = m + 12
y = y - 1

jd = int(365.25*y)
- int(y/100)
+ int(y/400)
+ int(30.6001*(m+1))
+ d
- 478164


In the meantime I had a look at the "Time Module VASM Listing 1C" on TOS. Here's a page of useful comments I found there. Probably I should have better started with that.

Regards

Thomas


Edited: 9 Dec 2010, 2:42 p.m.