I was wondering, how to get the number of days between to dates. I was thinking that if you subtracted two (time_t)s then convert that to struct tm, then use the tm_mday, but if the difference was greater that 31, that wouldn't work, any ideas?
I was wondering, how to get the number of days between to dates. I was thinking that if you subtracted two (time_t)s then convert that to struct tm, then use the tm_mday, but if the difference was greater that 31, that wouldn't work, any ideas?
wait, I think I got, will just divide by number of seconds in day, I was thinking about it too much.