C# 클래스 System.DateTimeExtensions

파일 보기 프로젝트 열기: TargetProcess/Target-Process-Plugins

공개 프로퍼티들

프로퍼티 타입 설명
MaxDateValue DateTime
MinDateValue DateTime

Private Properties

프로퍼티 타입 설명
Date DateTime?
DateDiffInSeconds int
FloorMonth System.DateTime
FloorMonth DateTime?
FloorQuarter System.DateTime
FloorQuarter DateTime?
FloorWeek System.DateTime
FloorWeek DateTime?
FloorYear System.DateTime
FloorYear DateTime?
ForecastEndDate DateTime?
WeekNumber int

공개 메소드들

메소드 설명
AddDays ( this date, double days ) : DateTime?
Days ( this days ) : System.TimeSpan
GetDateName ( this date ) : string
GetPartWeekName ( this weekStartDate, System.DateTime weekEndDate ) : string
GetWeekFirstDay ( this date ) : System.DateTime
GetWeekLastDay ( this date ) : System.DateTime
GetWeekName ( this date ) : string
HumanFormat ( this dateTime ) : IFormattedMessage
Subtract ( this date, TimeSpan timeSpan ) : DateTime?
SubtractDays ( this dateTime, int days ) : DateTime
ToJavascriptDate ( this date ) : long
TrimHours ( this dateTime ) : DateTime
TrimMilliseconds ( this dateTime ) : DateTime
TrimMilliseconds ( this dateTime ) : DateTime?
Truncate ( this dateTime, TimeSpan timeSpan ) : DateTime

비공개 메소드들

메소드 설명
Date ( this date ) : DateTime?
DateDiffInSeconds ( this date, System.DateTime otherDate ) : int
FloorMonth ( this date ) : System.DateTime
FloorMonth ( this date ) : DateTime?
FloorQuarter ( this date ) : System.DateTime
FloorQuarter ( this date ) : DateTime?
FloorWeek ( System.DateTime dateTime ) : System.DateTime
FloorWeek ( this date ) : DateTime?
FloorYear ( this date ) : System.DateTime
FloorYear ( this date ) : DateTime?
ForecastEndDate ( this startDate, System.DateTime now, decimal progress ) : DateTime?
WeekNumber ( this date ) : int

메소드 상세

AddDays() 공개 정적인 메소드

public static AddDays ( this date, double days ) : DateTime?
date this
days double
리턴 DateTime?

Days() 공개 정적인 메소드

public static Days ( this days ) : System.TimeSpan
days this
리턴 System.TimeSpan

GetDateName() 공개 정적인 메소드

public static GetDateName ( this date ) : string
date this
리턴 string

GetPartWeekName() 공개 정적인 메소드

public static GetPartWeekName ( this weekStartDate, System.DateTime weekEndDate ) : string
weekStartDate this
weekEndDate System.DateTime
리턴 string

GetWeekFirstDay() 공개 정적인 메소드

public static GetWeekFirstDay ( this date ) : System.DateTime
date this
리턴 System.DateTime

GetWeekLastDay() 공개 정적인 메소드

public static GetWeekLastDay ( this date ) : System.DateTime
date this
리턴 System.DateTime

GetWeekName() 공개 정적인 메소드

public static GetWeekName ( this date ) : string
date this
리턴 string

HumanFormat() 공개 정적인 메소드

public static HumanFormat ( this dateTime ) : IFormattedMessage
dateTime this
리턴 IFormattedMessage

Subtract() 공개 정적인 메소드

public static Subtract ( this date, TimeSpan timeSpan ) : DateTime?
date this
timeSpan TimeSpan
리턴 DateTime?

SubtractDays() 공개 정적인 메소드

public static SubtractDays ( this dateTime, int days ) : DateTime
dateTime this
days int
리턴 DateTime

ToJavascriptDate() 공개 정적인 메소드

public static ToJavascriptDate ( this date ) : long
date this
리턴 long

TrimHours() 공개 정적인 메소드

public static TrimHours ( this dateTime ) : DateTime
dateTime this
리턴 DateTime

TrimMilliseconds() 공개 정적인 메소드

public static TrimMilliseconds ( this dateTime ) : DateTime
dateTime this
리턴 DateTime

TrimMilliseconds() 공개 정적인 메소드

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

Truncate() 공개 정적인 메소드

public static Truncate ( this dateTime, TimeSpan timeSpan ) : DateTime
dateTime this
timeSpan TimeSpan
리턴 DateTime

프로퍼티 상세

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

public static DateTime MaxDateValue
리턴 DateTime

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

public static DateTime MinDateValue
리턴 DateTime