C# Class HandCoded.Finance.CalendarRule.Easter

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

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

Generate() public méthode

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.
Résultat Date