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

The Fixed class extends Calendar with an understanding of how to handle holidays than fall on fixed dates and for which the associate public holiday date may be rolled.
상속: CalendarRule
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp

공개 메소드들

메소드 설명
Fixed ( string name, int from, int until, int month, int dayOfMonth, DateRoll dateRoll ) : System

Constructs a Fixed date calender rule.

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.

메소드 상세

Fixed() 공개 메소드

Constructs a Fixed date calender rule.
public Fixed ( string name, int from, int until, int month, int dayOfMonth, DateRoll dateRoll ) : 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.
month int The month of the year where the holidays falls.
dayOfMonth int The day of the month where the holiday falls.
dateRoll DateRoll The used to adjust dates.
리턴 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