Hi,
How i can get date difference in Months and Days?
Is there functions i can use to get this?
I'm totally new to C.
Thanks for anykind of help,
Rwe
This is a discussion on DateDiff in Month & Days format within the C Programming forums, part of the General Programming Boards category; Hi, How i can get date difference in Months and Days? Is there functions i can use to get this? ...
Hi,
How i can get date difference in Months and Days?
Is there functions i can use to get this?
I'm totally new to C.
Thanks for anykind of help,
Rwe
There's difftime() in time.h
How are you representing your time values to begin with?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.
I'm passing all six component idenpendantlay. Like M1, D1, Y1 and M2, D2, Y2
So you could call mktime() for those two times, then do a difftime() between them?
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
I support http://www.ukip.org/ as the first necessary step to a free Europe.