Post Reply 
How many Years Months and Days ?
03-13-2015, 08:19 PM (This post was last modified: 03-13-2015 08:21 PM by Dieter.)
Post: #13
RE: How many Years Months and Days ?
(03-13-2015 07:40 PM)ggauny@live.fr Wrote:  Here is the program i was speaking.

This one uses the second method in my previous post. The result depends on the number of days in the month of the earlier date (here February). Which is L(b) in your program.

You can also try the other method that is based on the number of days in the month preceding the one in the later date. In the example this would be May (the month before June). This approach can be implemented by replacing L(b) with L(e–1). Of course you have to make sure that e–1=0 is handled correctly. L(0) actually is L(12) = 31, the number of days in December.

Dieter
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: How many Years Months and Days ? - Dieter - 03-13-2015 08:19 PM



User(s) browsing this thread: 1 Guest(s)