/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/posix_time_duration.hpp (2841B)
#ifndef POSIX_TIME_DURATION_HPP___ #define POSIX_TIME_DURATION_HPP___ /* Copyright (c) 2002,2003, 2020 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 #include #include #include #include namespace boost { namespace posix_time { //! Allows expression of durations as an hour count //! The argument must be an integral type /*! \ingroup time_basics */ class BOOST_SYMBOL_VISIBLE hours : public time_duration { public: template BOOST_CXX14_CONSTEXPR explicit hours(T const& h, typename boost::enable_if, void>::type* = BOOST_DATE_TIME_NULLPTR) : time_duration(numeric_cast(h), 0, 0) {} }; //! Allows expression of durations as a minute count //! The argument must be an integral type /*! \ingroup time_basics */ class BOOST_SYMBOL_VISIBLE minutes : public time_duration { public: template BOOST_CXX14_CONSTEXPR explicit minutes(T const& m, typename boost::enable_if, void>::type* = BOOST_DATE_TIME_NULLPTR) : time_duration(0, numeric_cast(m),0) {} }; //! Allows expression of durations as a seconds count //! The argument must be an integral type /*! \ingroup time_basics */ class BOOST_SYMBOL_VISIBLE seconds : public time_duration { public: template BOOST_CXX14_CONSTEXPR explicit seconds(T const& s, typename boost::enable_if, void>::type* = BOOST_DATE_TIME_NULLPTR) : time_duration(0,0, numeric_cast(s)) {} }; //! Allows expression of durations as milli seconds /*! \ingroup time_basics */ typedef date_time::subsecond_duration millisec; typedef date_time::subsecond_duration milliseconds; //! Allows expression of durations as micro seconds /*! \ingroup time_basics */ typedef date_time::subsecond_duration microsec; typedef date_time::subsecond_duration microseconds; //This is probably not needed anymore... #if defined(BOOST_DATE_TIME_HAS_NANOSECONDS) //! Allows expression of durations as nano seconds /*! \ingroup time_basics */ typedef date_time::subsecond_duration nanosec; typedef date_time::subsecond_duration nanoseconds; #endif } }//namespace posix_time #endif