I want to find the number of days in-between two days.
What is the easiest way to do this?
 
I am using the date_time lib and want to find the number of days from the time_t started.
 
ptime timet_start(date(1970,1,1));
ptime t(d);
time_duration diff = t - timet_start;
ptime t123(diff);

// timeval tv;
//drop off the fractional seconds...
// tv.tv_sec = diff.ticks()/time_duration::rep_type::res_adjust();

return 0;
// return difference.days;

 
Lars Schouw


Do you Yahoo!?
Yahoo! Photos - Get your photo on the big screen in Times Square