/usr/include/boost/date_time/posix_time
NameSizeModeActions
conversion.hpp33910644editdlrm
date_duration_operators.hpp39060644editdlrm
posix_time.hpp12500644editdlrm
posix_time_config.hpp56430644editdlrm
posix_time_duration.hpp28410644editdlrm
posix_time_io.hpp92330644editdlrm
posix_time_legacy_io.hpp46400644editdlrm
posix_time_system.hpp11540644editdlrm
posix_time_types.hpp17980644editdlrm
ptime.hpp26080644editdlrm
time_formatters.hpp93000644editdlrm
time_formatters_limited.hpp59880644editdlrm
time_parsers.hpp13840644editdlrm
time_period.hpp6900644editdlrm
time_serialize.hpp96540644editdlrm
Edit: /usr/include/boost/date_time/posix_time/time_parsers.hpp (1384B)
#ifndef POSIXTIME_PARSERS_HPP___ #define POSIXTIME_PARSERS_HPP___ /* Copyright (c) 2002,2003 CrystalClear Software, Inc. * Use, modification and distribution is subject to the * Boost Software License, Version 1.0. (See accompanying * file LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) * Author: Jeff Garland * $Date$ */ #include "boost/date_time/gregorian/gregorian.hpp" #include "boost/date_time/time_parsing.hpp" #include "boost/date_time/posix_time/posix_time_types.hpp" namespace boost { namespace posix_time { //! Creates a time_duration object from a delimited string /*! 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 "-:,.". */ inline time_duration duration_from_string(const std::string& s) { return date_time::parse_delimited_time_duration(s); } inline ptime time_from_string(const std::string& s) { return date_time::parse_delimited_time(s, ' '); } inline ptime from_iso_string(const std::string& s) { return date_time::parse_iso_time(s, 'T'); } inline ptime from_iso_extended_string(const std::string& s) { return date_time::parse_delimited_time(s, 'T'); } } } //namespace posix_time #endif