Boost logo

Boost :

From: Val Samko (boost_at_[hidden])
Date: 2004-04-09 21:43:46

I did not find any functions in Date-Time library to add a number of
months to a given day, or to obtain the last/first day of the month.
I mean something like
date add_month(const date&, int month_count);
date first_date_of_month(const date&);
date last_date_of_month(const date&);

I understand that I can use the month_iterator instead
of add_month, and end_of_month_day instead of
last_date_of_month, but since the functionality I described
is heavily used in some applications (accounting for instance),
it would be much simpler just to call add_month, ... functions.

Is there any particular reason why they are not provided?

Val Samko

Boost list run by bdawes at, gregod at, cpdaniel at, john at