C# Class Signum.Utilities.TimeSpanExtensions

ファイルを表示 Open project: signumsoftware/framework

Public Methods

Method Description
GetPrecision ( this timeSpan ) : DateTimePrecision?
NiceToString ( this timeSpan ) : string
NiceToString ( this timeSpan, DateTimePrecision precission ) : string
ToShortString ( this ts ) : string
TrimTo ( this time, DateTimePrecision precision ) : System.TimeSpan
TrimToDays ( this time ) : System.TimeSpan
TrimToHours ( this time ) : System.TimeSpan
TrimToMinutes ( this time ) : System.TimeSpan
TrimToSeconds ( this time ) : System.TimeSpan

Method Details

GetPrecision() public static method

public static GetPrecision ( this timeSpan ) : DateTimePrecision?
timeSpan this
return DateTimePrecision?

NiceToString() public static method

public static NiceToString ( this timeSpan ) : string
timeSpan this
return string

NiceToString() public static method

public static NiceToString ( this timeSpan, DateTimePrecision precission ) : string
timeSpan this
precission DateTimePrecision
return string

ToShortString() public static method

public static ToShortString ( this ts ) : string
ts this
return string

TrimTo() public static method

public static TrimTo ( this time, DateTimePrecision precision ) : System.TimeSpan
time this
precision DateTimePrecision
return System.TimeSpan

TrimToDays() public static method

public static TrimToDays ( this time ) : System.TimeSpan
time this
return System.TimeSpan

TrimToHours() public static method

public static TrimToHours ( this time ) : System.TimeSpan
time this
return System.TimeSpan

TrimToMinutes() public static method

public static TrimToMinutes ( this time ) : System.TimeSpan
time this
return System.TimeSpan

TrimToSeconds() public static method

public static TrimToSeconds ( this time ) : System.TimeSpan
time this
return System.TimeSpan