C# Class HandCoded.Finance.CalendarRule.Easter

The Easter class extends CalendarRule with an understanding of Easter related holidays.
Inheritance: CalendarRule
Datei anzeigen Open project: formicary/fpml-toolkit-csharp

Public Methods

Method Description
Easter ( string name, int from, int until, int offset ) : System

Constructs an Easter related holiday definition.

Generate ( Calendar calendar, int year ) : Date

Applies the algorithm defined by the CalendarRule to calculate the date that a holiday falls in the given year using the given Calendar to avoid other non-business dates.

Method Details

Easter() public method

Constructs an Easter related holiday definition.
public Easter ( string name, int from, int until, int offset ) : System
name string The name of the holiday.
from int The first year in which the holiday occurs.
until int The last year in which the holiday occurs.
offset int The number of days relative to Easter Monday.
return System

Generate() public method

Applies the algorithm defined by the CalendarRule to calculate the date that a holiday falls in the given year using the given Calendar to avoid other non-business dates.
public Generate ( Calendar calendar, int year ) : Date
calendar Calendar The used to identify non-business days.
year int The year to generate the holiday for.
return Date