On 11/16/2013 5:08 AM, John Landmesser wrote:
This discussion seems to be finished ( 92 posts ) and i want to make a proposal
as solution:
Use the function DateDiff from Jedi ( RxLib ) ( JvJCLUtils.pas ).
It's not perfect, but it works for me:
in what way do you think it is not perfect for your purposes or needs?
FWIW: i copied the jedi datediff you posted and placed it in my testing project
to compare my output with it... the results are exactly the same...
but i still wonder if the last day of a month to the last day of another month
should be counted as a full month...
eg:
CalendarDateDiff: 2012-01-31 to 2012-02-29 = 0 yrs 0 mos 29 days
JediDateDiff: 2012-01-31 to 2012-02-29 = 0 yrs 0 mos 29 days
should this actually be
2012-01-31 to 2012-02-29 = 0 yrs 1 mos 0 days
--
NOTE: No off-list assistance is given without prior approval.
Please keep mailing list traffic on the list unless
private contact is specifically requested and granted.
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus