Boost logo

Boost Users :

From: Jeff Garland (jeff_at_[hidden])
Date: 2007-05-27 11:08:22


Seweryn Habdank-Wojewódzki wrote:
> Hi
>
> I have simple problem if months and years derived from date_duration?
>
> The goal is that user can dynamically choose a time of events that appear
> periodically in shedule e.g. every 20th of any month is a meeting or every 3
> months something other happens or birthsday is one per year.

I'm not entirely sure I understand your question, but it sounds to me like you
want to use date generators. These allow you to specify part of a date and
then generate a concrete date based on a final input. For example you can say

partial_date pd(20, Jan);
date d = pd.get_date(2007);

Is that what you are trying to do? Anyway, the docs for this stuff are at:

http://www.boost.org/doc/html/date_time/gregorian.html#date_time.gregorian.date_algorithms

Jeff


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net