<div dir="ltr">2008/8/28 Jean-Pierre Bergamin <span dir="ltr">&lt;james@ractive.ch&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Roman Perepelitsa schrieb:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">
2008/8/28 Jean-Pierre Bergamin &lt;james@ractive.ch&gt;<br>
<br></div><div class="Ih2E3d">
 &nbsp; &nbsp;Is there a year_based_generator for easter dates somewhere lying<br>
 &nbsp; &nbsp;around, waiting to be used by others?<br>
<br>
<br>
 &nbsp; &nbsp;Thanks<br>
<br>
 &nbsp; &nbsp;James<br>
<br>
<br>
Date generators from Boost Date Time Library can do that.<br>
<a href="http://www.boost.org/doc/libs/1_36_0/doc/html/date_time/gregorian.html#date_time.gregorian.date_algorithms" target="_blank">http://www.boost.org/doc/libs/1_36_0/doc/html/date_time/gregorian.html#date_time.gregorian.date_algorithms</a><br>

Here is the example: <a href="http://svn.boost.org/svn/boost/trunk/libs/date_time/example/gregorian/print_holidays.cpp" target="_blank">http://svn.boost.org/svn/boost/trunk/libs/date_time/example/gregorian/print_holidays.cpp</a><br>

</div></blockquote>
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.<br>
<br>
</blockquote></div><br>Just checked wikipedia and it seems that it&#39;s really a non trivial task to implement easter date calculation using Boost Date Time. Sorry for misinformation.<br><br>Roman Perepelitsa.<br><br></div>