Class template partial_date
boost::date_time::partial_date — Generates a date by applying the year to the given month and day. 
 
Synopsis
template<typename date_type> 
class partial_date :
  public boost::date_time::year_based_generator< date_type >
{
public:
  
  typedef date_type::calendar_type    calendar_type;
  typedef calendar_type::day_type     day_type;     
  typedef calendar_type::month_type   month_type;   
  typedef calendar_type::year_type    year_type;    
  typedef date_type::duration_type    duration_type;
  typedef duration_type::duration_rep duration_rep; 
  
  partial_date(day_type, month_type);
  partial_date(duration_rep);
  
  virtual date_type get_date(year_type) const;
  date_type operator()(year_type) const;
  bool operator==(const partial_date &) const;
  bool operator<(const partial_date &) const;
  month_type month() const;
  day_type day() const;
  virtual std::string to_string() const;
};
Description
Пример использования:
partial_date pd(1, Jan);
partial_date pd2(70);
date d = pd.get_date(2002); 
date d2 = pd2.get_date(2002); 
 
partial_date 
        public
       construct/copy/destruct
- partial_date(day_type d, месяц_type m); 
- partial_date(duration_rep days); Partial date created from number of days into year. Диапазон 1-366.-  Допустимые значения варьируются от 1 до 366. 1=Jan1, 366=Dec31. Если спор превышает диапазон, - partial_dateбудет создан с ближайшим значением в диапазоне. 60 всегда будет Feb29, если get_date() будет называться с невыходным годом, исключение будет брошено
 
 
partial_date public member functions
- virtual date_type get_date(year_type y) const; - Будет брошено исключение "недействительный_аргумент", если объект - partial_date, мгновенный с Feb-29, получил _дат с невыходным годом. Пример:
 - частичная_дата pd(2>,Феб>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 
- date_type оператор()(год_type y) const; 
- bool оператор==(const partial_date & rhs) const; 
- bool оператор<(const partial_date & rhs) const; 
- месяц_тип месяц() const; 
- day_type day() const; 
- virtual std::string to_string() const; Returns строка подходит для использования в строке часовых поясов POSIX.- Поворот строки отформатирован до 3 цифр: Jan-01 == "0" Feb-29 == "58" Dec-31 == "365"