[date_time]: Easter calculation

Dear Boost-Users Is there a year_based_generator for easter dates somewhere lying around, waiting to be used by others? Thanks James

Is there a year_based_generator for easter dates somewhere lying around, waiting to be used by others?
http://quantlib.org/reference/class_quant_lib_1_1_calendar.html -- Scanned for viruses and dangerous content at http://www.oneunified.net and is believed to be clean.

2008/8/28 Jean-Pierre Bergamin
Dear Boost-Users
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_... Here is the example: http://svn.boost.org/svn/boost/trunk/libs/date_time/example/gregorian/print_... Roman Perepelitsa.

Roman Perepelitsa schrieb:
2008/8/28 Jean-Pierre Bergamin
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_... Here is the example: http://svn.boost.org/svn/boost/trunk/libs/date_time/example/gregorian/print_... 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.
Regards James

2008/8/28 Jean-Pierre Bergamin
Roman Perepelitsa schrieb:
2008/8/28 Jean-Pierre Bergamin
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_... Here is the example: http://svn.boost.org/svn/boost/trunk/libs/date_time/example/gregorian/print_...
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.
participants (3)
-
Jean-Pierre Bergamin
-
Ray Burkholder
-
Roman Perepelitsa