Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is an old version of boost. Click here for the latest version's documentation home page.
PrevUpHomeNext

Function duration_from_string

boost::posix_time::duration_from_string —

Creates a time_duration object from a delimited string.

Synopsis

time_duration duration_from_string(const std::string & s);

Description

Expected format for string is "[-]h[h][:mm][:ss][.fff]". A negative duration will be created if the first character in string is a '-', all other '-' will be treated as delimiters. Accepted delimiters are "-:,.".

Copyright 2001-2004 CrystalClear Software, Inc

PrevUpHomeNext