C# 클래스 Signum.Utilities.DateTimeExtensions

파일 보기 프로젝트 열기: signumsoftware/framework

공개 메소드들

메소드 설명
Add ( this date, DateSpan dateSpan ) : System.DateTime
DateSpanTo ( this min, System.DateTime max ) : DateSpan
GetPrecision ( this dateTime ) : DateTimePrecision
JavascriptMilliseconds ( this dateTime ) : long
Max ( this a, System.DateTime b ) : System.DateTime
Max ( this a, System.DateTime b ) : DateTime?
Min ( this a, System.DateTime b ) : System.DateTime
Min ( this a, System.DateTime b ) : DateTime?
MonthStart ( this dateTime ) : System.DateTime
MonthsTo ( this start, System.DateTime end ) : int
SmartDatePattern ( this date ) : string
SmartDatePattern ( this date, System.DateTime currentdate ) : string
SmartShortDatePattern ( this date ) : string
SmartShortDatePattern ( this date, System.DateTime currentdate ) : string
ToAgoString ( this dateTime ) : string
ToAgoString ( this dateTime, System.DateTime now ) : string
ToMonthName ( this dateTime ) : string
ToShortMonthName ( this dateTime ) : string
TotalMonths ( this start, System.DateTime end ) : double
TrimTo ( this dateTime, DateTimePrecision precision ) : System.DateTime
TrimToHours ( this dateTime ) : System.DateTime
TrimToMinutes ( this dateTime ) : System.DateTime
TrimToSeconds ( this dateTime ) : System.DateTime
WeekNumber ( this dateTime ) : int
YearsTo ( this start, System.DateTime end ) : int

비공개 메소드들

메소드 설명
AssertDateOnly ( System.DateTime date ) : void
IsInDateInterval ( this date, System.DateTime minDate, System.DateTime maxDate ) : bool
IsInInterval ( this date, System.DateTime minDate, System.DateTime maxDate ) : bool
NumberOfDaysAfterOneMonth ( System.DateTime monthStart ) : double

메소드 상세

Add() 공개 정적인 메소드

public static Add ( this date, DateSpan dateSpan ) : System.DateTime
date this
dateSpan DateSpan
리턴 System.DateTime

DateSpanTo() 공개 정적인 메소드

public static DateSpanTo ( this min, System.DateTime max ) : DateSpan
min this
max System.DateTime
리턴 DateSpan

GetPrecision() 공개 정적인 메소드

public static GetPrecision ( this dateTime ) : DateTimePrecision
dateTime this
리턴 DateTimePrecision

JavascriptMilliseconds() 공개 정적인 메소드

public static JavascriptMilliseconds ( this dateTime ) : long
dateTime this
리턴 long

Max() 공개 정적인 메소드

public static Max ( this a, System.DateTime b ) : System.DateTime
a this
b System.DateTime
리턴 System.DateTime

Max() 공개 정적인 메소드

public static Max ( this a, System.DateTime b ) : DateTime?
a this
b System.DateTime
리턴 DateTime?

Min() 공개 정적인 메소드

public static Min ( this a, System.DateTime b ) : System.DateTime
a this
b System.DateTime
리턴 System.DateTime

Min() 공개 정적인 메소드

public static Min ( this a, System.DateTime b ) : DateTime?
a this
b System.DateTime
리턴 DateTime?

MonthStart() 공개 정적인 메소드

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

MonthsTo() 공개 정적인 메소드

public static MonthsTo ( this start, System.DateTime end ) : int
start this
end System.DateTime
리턴 int

SmartDatePattern() 공개 정적인 메소드

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

SmartDatePattern() 공개 정적인 메소드

public static SmartDatePattern ( this date, System.DateTime currentdate ) : string
date this
currentdate System.DateTime
리턴 string

SmartShortDatePattern() 공개 정적인 메소드

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

SmartShortDatePattern() 공개 정적인 메소드

public static SmartShortDatePattern ( this date, System.DateTime currentdate ) : string
date this
currentdate System.DateTime
리턴 string

ToAgoString() 공개 정적인 메소드

public static ToAgoString ( this dateTime ) : string
dateTime this
리턴 string

ToAgoString() 공개 정적인 메소드

public static ToAgoString ( this dateTime, System.DateTime now ) : string
dateTime this
now System.DateTime
리턴 string

ToMonthName() 공개 정적인 메소드

public static ToMonthName ( this dateTime ) : string
dateTime this
리턴 string

ToShortMonthName() 공개 정적인 메소드

public static ToShortMonthName ( this dateTime ) : string
dateTime this
리턴 string

TotalMonths() 공개 정적인 메소드

public static TotalMonths ( this start, System.DateTime end ) : double
start this
end System.DateTime
리턴 double

TrimTo() 공개 정적인 메소드

public static TrimTo ( this dateTime, DateTimePrecision precision ) : System.DateTime
dateTime this
precision DateTimePrecision Using Milliseconds does nothing, using Days use DateTime.Date
리턴 System.DateTime

TrimToHours() 공개 정적인 메소드

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

TrimToMinutes() 공개 정적인 메소드

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

TrimToSeconds() 공개 정적인 메소드

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

WeekNumber() 공개 정적인 메소드

public static WeekNumber ( this dateTime ) : int
dateTime this
리턴 int

YearsTo() 공개 정적인 메소드

public static YearsTo ( this start, System.DateTime end ) : int
start this
end System.DateTime
리턴 int