C# 클래스 System.TimeUtils

파일 보기 프로젝트 열기: sapiens/cavemantools

공개 메소드들

메소드 설명
EnumerateTo ( this start, System.DateTime end ) : IEnumerable
IsSameMonthAs ( this date, System.DateTime otherDate ) : bool

Checks if both dates are days of the same month and year

MeasureTime ( System.Action action ) : System.TimeSpan
Multiply ( this duration, double modifier ) : System.TimeSpan
Multiply ( this duration, float modifier ) : System.TimeSpan

Multiplies a time period by a number

ToDays ( this value ) : System.TimeSpan
ToFirstDay ( this date ) : System.DateTime
ToHuman ( this time ) : string

Outputs the 'human friendly' format (ex: 4 days ago). English only

ToLastDayOfMonth ( this dt ) : System.DateTime
ToMiliseconds ( this value ) : System.TimeSpan
ToSeconds ( this value ) : System.TimeSpan

메소드 상세

EnumerateTo() 공개 정적인 메소드

public static EnumerateTo ( this start, System.DateTime end ) : IEnumerable
start this
end System.DateTime
리턴 IEnumerable

IsSameMonthAs() 공개 정적인 메소드

Checks if both dates are days of the same month and year
public static IsSameMonthAs ( this date, System.DateTime otherDate ) : bool
date this
otherDate System.DateTime
리턴 bool

MeasureTime() 공개 정적인 메소드

public static MeasureTime ( System.Action action ) : System.TimeSpan
action System.Action
리턴 System.TimeSpan

Multiply() 공개 정적인 메소드

public static Multiply ( this duration, double modifier ) : System.TimeSpan
duration this
modifier double
리턴 System.TimeSpan

Multiply() 공개 정적인 메소드

Multiplies a time period by a number
public static Multiply ( this duration, float modifier ) : System.TimeSpan
duration this
modifier float
리턴 System.TimeSpan

ToDays() 공개 정적인 메소드

public static ToDays ( this value ) : System.TimeSpan
value this
리턴 System.TimeSpan

ToFirstDay() 공개 정적인 메소드

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

ToHuman() 공개 정적인 메소드

Outputs the 'human friendly' format (ex: 4 days ago). English only
public static ToHuman ( this time ) : string
time this
리턴 string

ToLastDayOfMonth() 공개 정적인 메소드

public static ToLastDayOfMonth ( this dt ) : System.DateTime
dt this
리턴 System.DateTime

ToMiliseconds() 공개 정적인 메소드

public static ToMiliseconds ( this value ) : System.TimeSpan
value this
리턴 System.TimeSpan

ToSeconds() 공개 정적인 메소드

public static ToSeconds ( this value ) : System.TimeSpan
value this
리턴 System.TimeSpan