Date algorithm.



#2

Hi, everybody!

I wonder if sometime "hp" publishes her algorithm to calculate the date, by given date and number of days?

Any other algorithm appreciated also.

Best regards, Tal email: td@chem.ch.huji.ac.il


#3

As far as I know, that means up to the 41 series, HP always published their formulas agorithm. I remember I saw the date calculation algorithm on the manual of the HP 1C ans on an application pac for the 34C.

I'll try to find it for you.

Best regards,

Thibaut

#4

For a simple version, see the HP25 Applications Manual; and for a more elaborated version, the HP41 Standard Pac manual (it comes with the calculator, the ROM module was an option).

#5

It's also in the 12C manual, appendix D. I've "borrowed" it a couple of times to stick in various programs that I've built over the years because it's so simple and easy to implement.

here it is:

delta-days = f(d1)-f(d2)

dn = 365(yyyy) + 31(mm-1) + dd + INT(z/4) - x where :

if mm<=2 x=0; z=(yyyy)-1

else x=INT(0.4mm + 2.3); z=(yyyy)


Possibly Related Threads...
Thread Author Replies Views Last Post
  Prime: how to detect date format giancarlo 1 498 12-02-2013, 11:21 AM
Last Post: Michael de Estrada
  Date/time formats R. Pienne 4 721 11-01-2013, 12:43 PM
Last Post: Marcus von Cube, Germany
  How to set the Date.Time etc on a WP34S Harold A Climer 4 696 10-29-2013, 09:32 PM
Last Post: FORTIN Pascal
  Date/time programs for the HP 35s R. Pienne 0 350 10-03-2013, 02:37 PM
Last Post: R. Pienne
  Date & Time disappear on WP 34S René Franquinet 16 1,715 12-10-2012, 08:24 AM
Last Post: Walter B
  Question about a "combinations" algorithm Namir 9 791 09-20-2012, 04:51 PM
Last Post: Gilles Carpentier
  Linear Programming - Simplex Algorithm LarryLion 5 572 09-04-2012, 10:57 PM
Last Post: David Hayden
  A little OT: Blank date fields in 200LX database Dave Britten 1 430 07-12-2012, 06:11 PM
Last Post: Dave Britten
  HP SMB 15C LE ship date Scott Newell 9 793 12-17-2011, 11:25 PM
Last Post: Scott Newell
  Algorithm for fitting a logistic curve? Tim Wessman 5 534 11-13-2011, 01:22 AM
Last Post: Wes Loewer

Forum Jump: