Карта сайта Kansoftware
НОВОСТИУСЛУГИРЕШЕНИЯКОНТАКТЫ
Разработка программного обеспечения

Class date_duration

Boost , The Boost C++ Libraries BoostBook Documentation Subset , Library Reference

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

PrevUpHomeNext

Class date_duration

boost::gregorian::date_duration — Durations in days for gregorian system.

Synopsis

// In header: <boost/date_time/gregorian/greg_duration.hpp>

class date_duration :
  public boost::date_time::date_duration< date_duration_rep >
{
public:
  // types
  typedef base_type::duration_rep duration_rep;
  // construct/copy/destruct
  explicit date_duration(duration_rep = 0);
  date_duration(date_time::special_values);
  date_duration(const date_duration &);
  date_duration(const base_type &);
  // public member functions
  bool operator==(const date_duration &) const;
  bool operator!=(const date_duration &) const;
  bool operator<(const date_duration &) const;
  bool operator>(const date_duration &) 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 & operator/=(int);
  // public static functions
  static date_duration unit();
};

Description

date_duration public construct/copy/destruct

  1. <
    explicitdate_duration(duration_repday_count=0);
    >Построй из расчета дня.
  2. <
    date_duration(date_time::special_valuessv);
    >Построение из специальных значений
  3. <
    date_duration(constdate_duration&other);
    >Копировать конструктор.
  4. <
    date_duration(constbase_type&other);
    >Построение из другого<date_duration>.

date_duration public member functions

  1. <
    booloperator==(constdate_duration&rhs)const;
    >
  2. <
    booloperator!=(constdate_duration&rhs)const;
    >
  3. <
    booloperator<(constdate_duration&rhs)const;
    >
  4. <
    booloperator>(constdate_duration&rhs)const;
    >
  5. <
    booloperator<=(constdate_duration&rhs)const;
    >
  6. <
    booloperator>=(constdate_duration&rhs)const;
    >
  7. <
    date_duration&operator-=(constdate_duration&rhs);
    >Вычтите другую продолжительность и #8211; результат подписан.
  8. <
    date_duration&operator+=(constdate_duration&rhs);
    >Добавить продолжительность и #8211; результат подписан.
  9. <
    date_durationoperator-()const;
    >unary - Позволяет для dd = -date_duration(2); ->dd == -2
  10. <
    date_duration&operator/=(intdivisor);
    >Операции отдела по продолжительности с целым числом.

date_duration public static functions

  1. <
    staticdate_durationunit();
    >Возвращает наименьшую продолжительность – используется для вычисления «конца».

PrevUpHomeNext

Статья Class date_duration раздела The Boost C++ Libraries BoostBook Documentation Subset Library Reference может быть полезна для разработчиков на c++ и boost.




Материалы статей собраны из открытых источников, владелец сайта не претендует на авторство. Там где авторство установить не удалось, материал подаётся без имени автора. В случае если Вы считаете, что Ваши права нарушены, пожалуйста, свяжитесь с владельцем сайта.



:: Главная :: Library Reference ::


реклама


©KANSoftWare (разработка программного обеспечения, создание программ, создание интерактивных сайтов), 2007
Top.Mail.Ru

Время компиляции файла: 2024-08-30 11:47:00
2025-05-20 02:47:18/0.0037498474121094/0