Boost logo

Boost Users :

From: Lars Schouw (schouwla_at_[hidden])
Date: 2003-12-24 03:46:00


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



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net