C# 클래스 Yea.DataTypes.ExtensionMethods.TimeSpanExtensions

TimeSpan extension methods
파일 보기 프로젝트 열기: OxPatient/Rule-Engine

공개 메소드들

메소드 설명
DaysRemainder ( this span ) : int

Days in the TimeSpan minus the months and years

Months ( this span ) : int

Months in the TimeSpan

ToStringFull ( ) : string

Converts the input to a string in this format: (Years) years, (Months) months, (DaysRemainder) days, (Hours) hours, (Minutes) minutes, (Seconds) seconds

ToStringFull ( this input ) : string

Converts the input to a string in this format: (Years) years, (Months) months, (DaysRemainder) days, (Hours) hours, (Minutes) minutes, (Seconds) seconds

Years ( this span ) : int

Years in the TimeSpan

메소드 상세

DaysRemainder() 공개 정적인 메소드

Days in the TimeSpan minus the months and years
public static DaysRemainder ( this span ) : int
span this TimeSpan to get the days from
리턴 int

Months() 공개 정적인 메소드

Months in the TimeSpan
public static Months ( this span ) : int
span this TimeSpan to get the months from
리턴 int

ToStringFull() 공개 정적인 메소드

Converts the input to a string in this format: (Years) years, (Months) months, (DaysRemainder) days, (Hours) hours, (Minutes) minutes, (Seconds) seconds
public static ToStringFull ( ) : string
리턴 string

ToStringFull() 공개 정적인 메소드

Converts the input to a string in this format: (Years) years, (Months) months, (DaysRemainder) days, (Hours) hours, (Minutes) minutes, (Seconds) seconds
public static ToStringFull ( this input ) : string
input this Input TimeSpan
리턴 string

Years() 공개 정적인 메소드

Years in the TimeSpan
public static Years ( this span ) : int
span this TimeSpan to get the years from
리턴 int