C# 클래스 HandCoded.Finance.Weekend

The Weekend class provides a mechanism to test if a Date falls on a weekend (e.g. non-working day). In traditionally Christian countries Saturday and Sunday are non-working but other religions have selected other days.
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
FRI_SAT Weekend
SAT_SUN Weekend
THU_FRI Weekend

공개 메소드들

메소드 설명
ForName ( string name ) : Weekend

Attempts to find a Weekend instance in the extent with the given reference name.

IsWeekend ( Date date ) : bool

Determines if the given Date falls on a weekend.

보호된 메소드들

메소드 설명
Weekend ( string name ) : System

Constructs a Weekend instance with the given name and adds it to the extent set.

비공개 메소드들

메소드 설명
IsFriOrSat ( Date date ) : bool

Tests is a Date falls on a Friday or a Saturday.

IsSatOrSun ( Date date ) : bool

Tests is a Date falls on a Saturday or a Sunday.

IsThuOrFri ( Date date ) : bool

Tests is a Date falls on a Thursday or a Friday.

메소드 상세

ForName() 공개 정적인 메소드

Attempts to find a Weekend instance in the extent with the given reference name.
public static ForName ( string name ) : Weekend
name string The reference name for the required instance.
리턴 Weekend

IsWeekend() 공개 추상적인 메소드

Determines if the given Date falls on a weekend.
public abstract IsWeekend ( Date date ) : bool
date Date The to check.
리턴 bool

Weekend() 보호된 메소드

Constructs a Weekend instance with the given name and adds it to the extent set.
protected Weekend ( string name ) : System
name string The name used to reference this instance.
리턴 System

프로퍼티 상세

FRI_SAT 공개적으로 정적으로 프로퍼티

A Weekend instance that detects Jewish style (Friday & Saturday) weekends.
public static Weekend,HandCoded.Finance FRI_SAT
리턴 Weekend

SAT_SUN 공개적으로 정적으로 프로퍼티

A Weekend instance that detects Christian style (Saturday & Sunday) weekends.
public static Weekend,HandCoded.Finance SAT_SUN
리턴 Weekend

THU_FRI 공개적으로 정적으로 프로퍼티

A Weekend instance that detects Islamic style (Thursday & Friday) weekends.
public static Weekend,HandCoded.Finance THU_FRI
리턴 Weekend