How many Years Months and Days ?
|
03-11-2015, 02:16 PM
(This post was last modified: 03-11-2015 02:28 PM by Dieter.)
Post: #7
|
|||
|
|||
RE: How many Years Months and Days ?
(03-11-2015 08:46 AM)ggauny@live.fr Wrote: You are really very fine, i very learn with you. I think you are teacher in maths or ingenior in informatic. Far, far away from that. #-) (03-11-2015 08:46 AM)ggauny@live.fr Wrote: I remember in school the "chronological substraction" about same for hours, minutes and seconds. If I understand this correctly, the method works as follows: Code: Let d1, m1, y1 (d2, m2, y2) represent the earlier (later) date. On the HP41 series (and most other classic RPN HPs) this can be implemented easily. The following code assumes two dates are entered in X and Y (earlier ENTER later) in dd.mmyyyy format. Code: 01 LBL"YMD" The result is returned in X (Δyears), Y (Δmonths) and Z (Δdays). If you're not familiar with the tricks and tweaks of the olden days: the two consecutive tests (x≠0? x>0?) behave like a x≥0? test (which the '41 does not offer). (03-11-2015 08:46 AM)ggauny@live.fr Wrote: The chronologiqual substraction is the best and shorter to calculate Delta Y M D. No matter with leaps or not leaps etc. It's a fast and concise method. Whether it's "the best" or not may be discussed – it's not quite exact. But not less so than the 30/360 method of the financial guys. ;-) Dieter |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)