How many Years Months and Days ?
|
03-08-2015, 06:57 PM
Post: #1
|
|||
|
|||
How many Years Months and Days ?
Hi,
Sometime ago I'd post a routine for Prime to calculate DYMD between 2 dates. Since I've HP 35s (pure RPN) I've retrieve a routine from 1980 ! that do the same thing, but very more "elegant" : Lbl YMD 365.2564 / FIX1 INT LASTx FRC 365.2564 * 30.44 / INT LASTx FRC 30.44 * FIX0. Enter the number days between 2 dates, XEQ YMD. YEARS are in Z, MONTHS in Y, and DAYS in X. Ex: 23389 (days) XEQ YMD -----> 64y 0m 13d. Very possible to enhance the output and port on any machine. Good night. Gérard. Gérard. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 3 Guest(s)