|
Boost Users : |
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2008-08-28 04:19:00
2008/8/28 Jean-Pierre Bergamin <james_at_[hidden]>
> Roman Perepelitsa schrieb:
>
>> 2008/8/28 Jean-Pierre Bergamin <james_at_[hidden]>
>>
>> Is there a year_based_generator for easter dates somewhere lying
>> around, waiting to be used by others?
>>
>>
>> Thanks
>>
>> James
>>
>>
>> Date generators from Boost Date Time Library can do that.
>>
>> http://www.boost.org/doc/libs/1_36_0/doc/html/date_time/gregorian.html#date_time.gregorian.date_algorithms
>> Here is the example:
>> http://svn.boost.org/svn/boost/trunk/libs/date_time/example/gregorian/print_holidays.cpp
>>
> There are some year based date generators (like
> nth_day_of_the_week_in_month), but not for getting the easter date of a
> specific year.
>
>
Just checked wikipedia and it seems that it's really a non trivial task to
implement easter date calculation using Boost Date Time. Sorry for
misinformation.
Roman Perepelitsa.
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