C# 클래스 Rolcore.DateTimeExtensions

Extension methods for DateTime.
파일 보기 프로젝트 열기: Rollins/Rolcore

공개 메소드들

메소드 설명
GetDateInSortableDateTimeFormat ( this date ) : string

Gets the given Date in sortable datetime format

IsHoliday ( this date ) : bool

Determines if the given DateTime is a holiday or not.

IsWeekend ( this date ) : bool

Determines if the given DateTime occurs on a weekend.

NearestWeekday ( this date ) : System.DateTime

Gets the nearest weekday (Monday through Friday) for the given DateTime.

Next ( this date, DateTimeUnit unit, int count ) : IEnumerable
Previous ( this date, DateTimeUnit unit, int count ) : IEnumerable

메소드 상세

GetDateInSortableDateTimeFormat() 공개 정적인 메소드

Gets the given Date in sortable datetime format
public static GetDateInSortableDateTimeFormat ( this date ) : string
date this
리턴 string

IsHoliday() 공개 정적인 메소드

Determines if the given DateTime is a holiday or not.
public static IsHoliday ( this date ) : bool
date this The date to determine if it is a holiday.
리턴 bool

IsWeekend() 공개 정적인 메소드

Determines if the given DateTime occurs on a weekend.
public static IsWeekend ( this date ) : bool
date this The date to determine if it occurs on a weekend.
리턴 bool

NearestWeekday() 공개 정적인 메소드

Gets the nearest weekday (Monday through Friday) for the given DateTime.
public static NearestWeekday ( this date ) : System.DateTime
date this The date on which to calculate the nearest weekday.
리턴 System.DateTime

Next() 공개 정적인 메소드

public static Next ( this date, DateTimeUnit unit, int count ) : IEnumerable
date this
unit DateTimeUnit
count int
리턴 IEnumerable

Previous() 공개 정적인 메소드

public static Previous ( this date, DateTimeUnit unit, int count ) : IEnumerable
date this
unit DateTimeUnit
count int
리턴 IEnumerable