[Lazarus] DateDif function needed
Jürgen Hestermann
juergen.hestermann at gmx.de
Wed Nov 13 18:06:16 CET 2013
Am 2013-11-13 16:22, schrieb waldo kitty:
>> A baby born on 1/01/2007 would be 7 days old on 7/01/2007.
> true :)
Realy?
That would mean that a baby born on 2007-01-01 10:00
is two days old on 2007-01-02 10:00?
To me this seems wrong because after 24 hours is only one day old.
A simple substraction should give the difference (7-1 or 2-1).
Also, a baby born on 2007-01-01 is one year old on 2008-01-01 (not two).
It has its first birthday.
More information about the Lazarus
mailing list