Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculating days between two dates in C
#8
C style would be more like
Code:
while (year1 < year2)
  days_until += 365 + if_leap(year1++);
Reply


Messages In This Thread
Calculating days between two dates in C - by SaptaZapta - 2011-11-30, 03:16 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)