C# Class SmartFormat.Utilities.TimeTextInfo

Supplies the localized text used for TimeSpan formatting.
Show file Open project: scottrippey/SmartFormat.NET Class Usage Examples

Public Methods

Method Description
GetLessThanText ( string minimumValue ) : string
GetUnitText ( TimeSpanFormatOptions unit, int value, bool abbr ) : string
TimeTextInfo ( SmartFormat.Utilities.PluralRules pluralRule, string week, string day, string hour, string minute, string second, string millisecond, string w, string d, string h, string m, string s, string ms, string lessThan ) : System
TimeTextInfo ( string week, string day, string hour, string minute, string second, string millisecond, string lessThan ) : System

Private Methods

Method Description
getValue ( SmartFormat.Utilities.PluralRules pluralRule, int value, string units ) : string

Method Details

GetLessThanText() public method

public GetLessThanText ( string minimumValue ) : string
minimumValue string
return string

GetUnitText() public method

public GetUnitText ( TimeSpanFormatOptions unit, int value, bool abbr ) : string
unit TimeSpanFormatOptions
value int
abbr bool
return string

TimeTextInfo() public method

public TimeTextInfo ( SmartFormat.Utilities.PluralRules pluralRule, string week, string day, string hour, string minute, string second, string millisecond, string w, string d, string h, string m, string s, string ms, string lessThan ) : System
pluralRule SmartFormat.Utilities.PluralRules
week string
day string
hour string
minute string
second string
millisecond string
w string
d string
h string
m string
s string
ms string
lessThan string
return System

TimeTextInfo() public method

public TimeTextInfo ( string week, string day, string hour, string minute, string second, string millisecond, string lessThan ) : System
week string
day string
hour string
minute string
second string
millisecond string
lessThan string
return System