C# Class Sappworks.Stocks.DateTimeExtensions

ファイルを表示 Open project: bmsapp/sappworks.stocks.public

Public Methods

Method Description
Between ( this value, System.DateTime a, System.DateTime b ) : bool
ChristmasDay ( int year ) : System.DateTime
ChristmasEve ( int year ) : System.DateTime
DayAfterThanksgivingDay ( int year ) : System.DateTime
EasterSunday ( int year ) : System.DateTime
GoodFriday ( int year ) : System.DateTime
IndependenceDay ( int year ) : System.DateTime
IsTradingHour ( this value ) : bool
JulyThird ( int year ) : System.DateTime
LaborDay ( int year ) : System.DateTime
MartinLutherKingJrDay ( int year ) : System.DateTime

Third monday in January

MemorialDay ( int year ) : System.DateTime

Last monday in may

NewYearsDay ( int year ) : System.DateTime
Next ( this date, DayOfWeek dayOfWeek ) : System.DateTime
NthWeekdayOfMonth ( int year, int month, int nthWeek, DayOfWeek dayOfWeek ) : System.DateTime
PresidentsDay ( int year ) : System.DateTime

Third monday in February

ThanksgivingDay ( int year ) : System.DateTime

Method Details

Between() public static method

public static Between ( this value, System.DateTime a, System.DateTime b ) : bool
value this
a System.DateTime
b System.DateTime
return bool

ChristmasDay() public static method

public static ChristmasDay ( int year ) : System.DateTime
year int
return System.DateTime

ChristmasEve() public static method

public static ChristmasEve ( int year ) : System.DateTime
year int
return System.DateTime

DayAfterThanksgivingDay() public static method

public static DayAfterThanksgivingDay ( int year ) : System.DateTime
year int
return System.DateTime

EasterSunday() public static method

public static EasterSunday ( int year ) : System.DateTime
year int
return System.DateTime

GoodFriday() public static method

public static GoodFriday ( int year ) : System.DateTime
year int
return System.DateTime

IndependenceDay() public static method

public static IndependenceDay ( int year ) : System.DateTime
year int
return System.DateTime

IsTradingHour() public static method

public static IsTradingHour ( this value ) : bool
value this
return bool

JulyThird() public static method

public static JulyThird ( int year ) : System.DateTime
year int
return System.DateTime

LaborDay() public static method

public static LaborDay ( int year ) : System.DateTime
year int
return System.DateTime

MartinLutherKingJrDay() public static method

Third monday in January
public static MartinLutherKingJrDay ( int year ) : System.DateTime
year int
return System.DateTime

MemorialDay() public static method

Last monday in may
public static MemorialDay ( int year ) : System.DateTime
year int
return System.DateTime

NewYearsDay() public static method

public static NewYearsDay ( int year ) : System.DateTime
year int
return System.DateTime

Next() public static method

public static Next ( this date, DayOfWeek dayOfWeek ) : System.DateTime
date this
dayOfWeek DayOfWeek
return System.DateTime

NthWeekdayOfMonth() public static method

public static NthWeekdayOfMonth ( int year, int month, int nthWeek, DayOfWeek dayOfWeek ) : System.DateTime
year int
month int
nthWeek int
dayOfWeek DayOfWeek
return System.DateTime

PresidentsDay() public static method

Third monday in February
public static PresidentsDay ( int year ) : System.DateTime
year int
return System.DateTime

ThanksgivingDay() public static method

public static ThanksgivingDay ( int year ) : System.DateTime
year int
return System.DateTime