Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class time_duration

boost::posix_time::time_duration — Base time duration type.

Synopsis

// In header: <boost/date_time/posix_time/posix_time_config.hpp>


class time_duration {
public:
  // types
  typedef time_res_traits                          rep_type;               
  typedef time_res_traits::day_type                day_type;               
  typedef time_res_traits::hour_type               hour_type;              
  typedef time_res_traits::min_type                min_type;               
  typedef time_res_traits::sec_type                sec_type;               
  typedef time_res_traits::fractional_seconds_type fractional_seconds_type;
  typedef time_res_traits::tick_type               tick_type;              
  typedef time_res_traits::impl_type               impl_type;              

  // construct/copy/destruct
  time_duration(hour_type, min_type, sec_type, fractional_seconds_type = 0);
  time_duration();
  time_duration(boost::date_time::special_values);
  explicit time_duration(impl_type);
};

Description

time_duration public construct/copy/destruct

  1. time_duration(hour_type hour, min_type min, sec_type sec, 
                  fractional_seconds_type fs = 0);
  2. time_duration();
  3. time_duration(boost::date_time::special_values sv);
    Construct from special_values.
  4. explicit time_duration(impl_type tick_count);

PrevUpHomeNext