C# Class SleepHunter.Extensions.TimeSpanExtender

Afficher le fichier Open project: ewrogers/SleepHunter4

Méthodes publiques

Méthode Description
ToFractionalEnglish ( this timeSpan, bool useShortNotation = false, string format = null ) : string
ToLongEnglish ( this timeSpan, bool includeMinorComponent = true, string format = null ) : string
ToPluralString ( this value, string pluralString, string singularString, string format = null ) : string
ToShortEnglish ( this timeSpan, bool includeMinorComponent = true, string format = null ) : string
TryParse ( string text, System.TimeSpan &value ) : bool

Private Methods

Méthode Description
ToEnglish ( this timeSpan, bool useShortNotation, bool includeMinorComponent = true, bool isFracitonal = false, string format = null ) : string

Method Details

ToFractionalEnglish() public static méthode

public static ToFractionalEnglish ( this timeSpan, bool useShortNotation = false, string format = null ) : string
timeSpan this
useShortNotation bool
format string
Résultat string

ToLongEnglish() public static méthode

public static ToLongEnglish ( this timeSpan, bool includeMinorComponent = true, string format = null ) : string
timeSpan this
includeMinorComponent bool
format string
Résultat string

ToPluralString() public static méthode

public static ToPluralString ( this value, string pluralString, string singularString, string format = null ) : string
value this
pluralString string
singularString string
format string
Résultat string

ToShortEnglish() public static méthode

public static ToShortEnglish ( this timeSpan, bool includeMinorComponent = true, string format = null ) : string
timeSpan this
includeMinorComponent bool
format string
Résultat string

TryParse() public static méthode

public static TryParse ( string text, System.TimeSpan &value ) : bool
text string
value System.TimeSpan
Résultat bool