Class TimeSpanExtensions
Holds System.TimeSpan extension methods.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Controls
Assembly: Telerik.Windows.Controls.ScheduleView.dll
Syntax
public static class TimeSpanExtensions
Methods
IsNegative(TimeSpan)
Determines whether the specified System.TimeSpan is negative. It checks whether the ticks count is less than zero.
Declaration
public static bool IsNegative(this TimeSpan source)
Parameters
System.TimeSpan
source
The source. |
Returns
System.Boolean
|
IsZero(TimeSpan)
Determines whether the specified System.TimeSpan is System.TimeSpan.Zero. It checks whether the ticks count is zero.
Declaration
public static bool IsZero(this TimeSpan source)
Parameters
System.TimeSpan
source
The source. |
Returns
System.Boolean
|
Round(TimeSpan)
Rounds the timespan to the second digit after delimiter.
Declaration
public static TimeSpan Round(this TimeSpan source)
Parameters
System.TimeSpan
source
The timespan that will be rounded. |
Returns
System.TimeSpan
The rounded value. |