Метод | Описание | |
---|---|---|
RoundDown ( this timeSpan ) : System.TimeSpan |
Rounds a TimeSpan down to the nearest second.
|
|
RoundDown ( this timeSpan ) : TimeSpan? |
Rounds a Nullable{TimeSpan} down to the nearest second.
|
|
RoundUp ( this timeSpan ) : System.TimeSpan |
Rounds a TimeSpan up to the nearest second.
|
|
RoundUp ( this timeSpan ) : TimeSpan? |
Rounds a Nullable{TimeSpan} up to the nearest second.
|
|
ToNaturalString ( this timeSpan ) : string |
Converts the value of a TimeSpan object to its equivalent natural string representation.
|
|
ToNaturalString ( this timeSpan, IFormatProvider provider ) : string |
Converts the value of a TimeSpan object to its equivalent natural string representation.
|
Метод | Описание | |
---|---|---|
GetStringWithUnits ( int value, string unit, IFormatProvider provider ) : string |
Returns a string for the specified value with the specified unit (e.g., "5 minutes").
|
public static RoundDown ( this timeSpan ) : System.TimeSpan | ||
timeSpan | this | A |
Результат | System.TimeSpan |
public static RoundDown ( this timeSpan ) : TimeSpan? | ||
timeSpan | this | A |
Результат | TimeSpan? |
public static RoundUp ( this timeSpan ) : System.TimeSpan | ||
timeSpan | this | A |
Результат | System.TimeSpan |
public static RoundUp ( this timeSpan ) : TimeSpan? | ||
timeSpan | this | A |
Результат | TimeSpan? |
public static ToNaturalString ( this timeSpan ) : string | ||
timeSpan | this | A |
Результат | string |
public static ToNaturalString ( this timeSpan, IFormatProvider provider ) : string | ||
timeSpan | this | A |
provider | IFormatProvider | An |
Результат | string |