C# 클래스 Commencement.Core.Helpers.DateTimeExtensions

파일 보기 프로젝트 열기: ucdavis/Commencement

공개 프로퍼티들

프로퍼티 타입 설명
Pacific System.TimeZoneInfo

공개 메소드들

메소드 설명
AddBusinessDays ( this dateTime, int days ) : System.DateTime

Probably don't need this. Copied from Giving

Between ( this dateTime, System.DateTime start, System.DateTime end, DateInclusion dateInclusion, TimeZoneInfo timeZone = null, bool dateOnly = false ) : bool

Compares the date against 1 (after) or 2 (between) dates.

FromPacificTime ( this dateTime ) : System.DateTime
ToPacificTime ( this dateTime ) : System.DateTime
ToPacificTime ( this dateTime ) : DateTime?

메소드 상세

AddBusinessDays() 공개 정적인 메소드

Probably don't need this. Copied from Giving
public static AddBusinessDays ( this dateTime, int days ) : System.DateTime
dateTime this
days int
리턴 System.DateTime

Between() 공개 정적인 메소드

Compares the date against 1 (after) or 2 (between) dates.
public static Between ( this dateTime, System.DateTime start, System.DateTime end, DateInclusion dateInclusion, TimeZoneInfo timeZone = null, bool dateOnly = false ) : bool
dateTime this
start System.DateTime The starting date time
end System.DateTime (Optional) The ending date time
dateInclusion DateInclusion Inclusion or exclusion of start/end date. Default is Inclusive if null.
timeZone System.TimeZoneInfo Timezone to convert all dates to. (If used, ensure all dates are in utc)
dateOnly bool Compare date only
리턴 bool

FromPacificTime() 공개 정적인 메소드

public static FromPacificTime ( this dateTime ) : System.DateTime
dateTime this
리턴 System.DateTime

ToPacificTime() 공개 정적인 메소드

public static ToPacificTime ( this dateTime ) : System.DateTime
dateTime this
리턴 System.DateTime

ToPacificTime() 공개 정적인 메소드

public static ToPacificTime ( this dateTime ) : DateTime?
dateTime this
리턴 DateTime?

프로퍼티 상세

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

public static TimeZoneInfo,System Pacific
리턴 System.TimeZoneInfo