C# 클래스 HandCoded.Finance.CalendarRule.Easter

The Easter class extends CalendarRule with an understanding of Easter related holidays.
상속: CalendarRule
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp

공개 메소드들

메소드 설명
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.

메소드 상세

Easter() 공개 메소드

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.
리턴 System

Generate() 공개 메소드

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.
리턴 Date