Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.

Struct template year_month_day_base

boost::date_time::year_month_day_base — Allow rapid creation of ymd triples of different types.


template<typename YearType, typename MonthType, typename DayType> 
struct year_month_day_base {
// types
typedef YearType year_type;
typedef MonthType month_type;
typedef DayType day_type;

// construct/copy/destruct
year_month_day_base(YearType, MonthType, DayType);

YearType year;
MonthType month;
DayType day;


year_month_day_base construct/copy/destruct

  1. year_month_day_base(YearType year, MonthType month, DayType day);
Copyright 2001-2005 CrystalClear Software, Inc