Class EasterSundayRule

  extended by
      extended by
All Implemented Interfaces:

public class EasterSundayRule
extends AnnualDateRule
implements java.lang.Cloneable

An annual date rule for Easter (Sunday). The algorithm used here was obtained from a Calendar FAQ which can be found at: It is based on an algorithm by Oudin (1940) and quoted in "Explanatory Supplement to the Astronomical Almanac", P. Kenneth Seidelmann, editor.

Constructor Summary
Method Summary
 SerialDate getDate(int year)
          Returns the date of Easter Sunday for the given year.
Methods inherited from class
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public EasterSundayRule()
Method Detail


public SerialDate getDate(int year)
Returns the date of Easter Sunday for the given year. See the class description for the source of the algorithm.

This method supports the AnnualDateRule interface.

Specified by:
getDate in class AnnualDateRule
The date for this rule, given the year.

Copyright © 2003 MBARI.

The Monterey Bay Aquarium Research Institute (MBARI) provides this documentation and code "as is", with no warranty, express or implied, of its quality or consistency. It is provided without support and without obligation on the part of MBARI to assist in its use, correction, modification, or enhancement.