C# 클래스 BinaryStudio.ClientManager.DomainModel.Infrastructure.DateTimeExtensions

파일 보기 프로젝트 열기: titarenko/ClientManager

공개 메소드들

메소드 설명
GetEndOfBusinessWeek ( this dateWithinWeek, int weekendLength = 2, DayOfWeek endOfWeek = DayOfWeek.Sunday ) : System.DateTime

Calculates date of last workday within the week

GetEndOfMonth ( this dayWithinMonth ) : System.DateTime

Calculates date of last day of month

GetEndOfWeek ( this dateWithinWeek, DayOfWeek endOfWeek = DayOfWeek.Sunday ) : System.DateTime

Calculates date of last day of week

GetStartOfBusinessWeek ( this dateWithinWeek, DayOfWeek startOfWeek = DayOfWeek.Monday ) : System.DateTime

Calculates date of the first workday within the week

GetStartOfMonth ( this dayWithinMonth ) : System.DateTime

Calculates date of the first day of month

GetStartOfWeek ( this dateWithinWeek, DayOfWeek startOfWeek = DayOfWeek.Monday ) : System.DateTime

Calculates date of the first day of week

GetWeekNumber ( this dateWithinWeek ) : int

Calculates week number

IsWeekend ( this date, int weekendLength = 2, DayOfWeek endOfWeek = DayOfWeek.Sunday ) : bool

Defines if specified date is weekend

메소드 상세

GetEndOfBusinessWeek() 공개 정적인 메소드

Calculates date of last workday within the week
public static GetEndOfBusinessWeek ( this dateWithinWeek, int weekendLength = 2, DayOfWeek endOfWeek = DayOfWeek.Sunday ) : System.DateTime
dateWithinWeek this
weekendLength int
endOfWeek DayOfWeek
리턴 System.DateTime

GetEndOfMonth() 공개 정적인 메소드

Calculates date of last day of month
public static GetEndOfMonth ( this dayWithinMonth ) : System.DateTime
dayWithinMonth this
리턴 System.DateTime

GetEndOfWeek() 공개 정적인 메소드

Calculates date of last day of week
public static GetEndOfWeek ( this dateWithinWeek, DayOfWeek endOfWeek = DayOfWeek.Sunday ) : System.DateTime
dateWithinWeek this
endOfWeek DayOfWeek
리턴 System.DateTime

GetStartOfBusinessWeek() 공개 정적인 메소드

Calculates date of the first workday within the week
public static GetStartOfBusinessWeek ( this dateWithinWeek, DayOfWeek startOfWeek = DayOfWeek.Monday ) : System.DateTime
dateWithinWeek this
startOfWeek DayOfWeek
리턴 System.DateTime

GetStartOfMonth() 공개 정적인 메소드

Calculates date of the first day of month
public static GetStartOfMonth ( this dayWithinMonth ) : System.DateTime
dayWithinMonth this
리턴 System.DateTime

GetStartOfWeek() 공개 정적인 메소드

Calculates date of the first day of week
public static GetStartOfWeek ( this dateWithinWeek, DayOfWeek startOfWeek = DayOfWeek.Monday ) : System.DateTime
dateWithinWeek this
startOfWeek DayOfWeek
리턴 System.DateTime

GetWeekNumber() 공개 정적인 메소드

Calculates week number
public static GetWeekNumber ( this dateWithinWeek ) : int
dateWithinWeek this
리턴 int

IsWeekend() 공개 정적인 메소드

Defines if specified date is weekend
public static IsWeekend ( this date, int weekendLength = 2, DayOfWeek endOfWeek = DayOfWeek.Sunday ) : bool
date this
weekendLength int
endOfWeek DayOfWeek
리턴 bool