...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
boost::posix_time::duration_from_string — Creates a time_duration object from a delimited string.
// In header: <boost/date_time/posix_time/time_parsers.hpp> time_duration duration_from_string(const std::string & s);