C# Class Yea.DataTypes.ExtensionMethods.TimeSpanExtensions

TimeSpan extension methods
Datei anzeigen Open project: OxPatient/Rule-Engine

Public Methods

Method Description
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

Method Details

DaysRemainder() public static method

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

Months() public static method

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

ToStringFull() public static method

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
return string

ToStringFull() public static method

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
return string

Years() public static method

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