How many Years Months and Days ?
|
03-10-2015, 10:07 PM
(This post was last modified: 03-10-2015 10:13 PM by Dieter.)
Post: #4
|
|||
|
|||
RE: How many Years Months and Days ?
(03-08-2015 06:57 PM)ggauny@live.fr Wrote: Very possible to enhance the output and port on any machine. You said you also want to try the 34s, so here is a first idea on how to do it using the built-in date functions. Caution: this code is completely untested, I finished it just five minutes ago. Any error you can imagine is possible. ;-) Code: LBL'YMD' Enter date1 [ENTER] date2 using the currently set date format, where date1 is the earlier date resp. date2 the later one. The number of years, months and days is returned on the stack (Z, Y and X). Example (assuming d.my mode): Code: 14,071979 [ENTER] 4,052011 If you prefer the result in one single value, simply add these lines before the final RTN: Code: SDR 002 This way the example would return 31,0920. As usual, comments and corrections are welcome. Dieter Edit: Sorry, I just realized this is the 41C software library. ;-) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)