Home | Libraries | People | FAQ | More |
boost::date_time::date_duration — Duration type with date level resolution.
template<typename duration_rep_traits> class date_duration { public: // types typedef duration_rep_traits::int_type duration_rep_type; typedef duration_rep_traits::impl_type duration_rep; // construct/copy/destruct date_duration(duration_rep); date_duration(special_values); date_duration(const date_duration< duration_rep_traits > &); // public member functions duration_rep get_rep() const; bool is_special() const; duration_rep_type days() const; bool operator==(const date_duration &) const; bool operator<(const date_duration &) const; date_duration operator-=(const date_duration &) ; date_duration operator+=(const date_duration &) ; date_duration operator-() const; date_duration< duration_rep_traits > operator/=(int) ; date_duration< duration_rep_traits > operator/(int) ; bool is_negative() const; // public static functions date_duration unit() ; };
date_duration
construct/copy/destructdate_duration(duration_rep day_count);
date_duration(special_values sv);
construct from special_values - only works when instantiated with duration_traits_adapted
date_duration(const date_duration< duration_rep_traits > & other);
date_duration
public member functionsduration_rep get_rep() const;
bool is_special() const;
duration_rep_type days() const;
bool operator==(const date_duration & rhs) const;
bool operator<(const date_duration & rhs) const;
date_duration operator-=(const date_duration & rhs) ;
date_duration operator+=(const date_duration & rhs) ;
date_duration operator-() const;
date_duration< duration_rep_traits > operator/=(int divisor) ;
date_duration< duration_rep_traits > operator/(int divisor) ;
bool is_negative() const;
Copyright © 2001-2005 CrystalClear Software, Inc |