Date algorithm. « Next Oldest | Next Newest »

 ▼ tal Member Posts: 97 Threads: 87 Joined: Jan 1970 06-11-2000, 03:42 AM 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 ▼ Thibaut.be Senior Member Posts: 610 Threads: 53 Joined: Aug 2005 06-11-2000, 04:20 AM 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 Andrés C. Rodríguez (Argentina) Posting Freak Posts: 1,193 Threads: 43 Joined: Jul 2005 06-11-2000, 07:25 AM 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). Katie Senior Member Posts: 265 Threads: 29 Joined: Jan 1970 06-14-2000, 12:14 AM 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: