[Lazarus] DateDif function needed

Hans-Peter Diettrich DrDiettrich1 at aol.com
Thu Nov 14 16:23:51 CET 2013


John Landmesser schrieb:

> Hihi, i asked a question about a DateDiff function for FreePascal, 
> because i wanted to know: how many years, month, days left to work in 
> Office until my pension begins on 01.08.2018.

What do you consider as *one* year, month etc., fixed (average) values 
or calender values?

When you get numbers for the years, months etc. remaining, and you 
reduce the number of days every day, what would you do when reaching 
zero days? You decrease months by one, and reset days to *which* amount?

> .. and where are we now??

Still before your answer.

DoDi





More information about the Lazarus mailing list