Hi.

I have a question regarding boost date_time library.

Class time_duration doesn't have milliseconds() accessor function, what is the optimal way to get number of milliseconds

using namespace boost::posix_time;
ptime t1(date(2012,Aug,9), hours(19)+minutes(10)+seconds(24)+milliseconds(954));

int millisecs=t1.time_of_day().total_milliseconds()%1000; // result must be 954

Thanks,
Roland