C# Класс Yea.DataTypes.ExtensionMethods.TimeSpanExtensions

TimeSpan extension methods
Показать файл Открыть проект

Открытые методы

Метод Описание
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