New to Telerik UI for WPFStart a free 30-day trial

Holds TimeSpan extension methods.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public static class TimeSpanExtensions

Inheritance: objectTimeSpanExtensions

Methods

Determines whether the specified TimeSpan is negative. It checks whether the ticks count is less than zero.

C#
public static bool IsNegative(this TimeSpan source)
Parameters:sourceTimeSpan

The source.

Returns:

bool

true if the specified TimeSpan is negative; otherwise, false.

Determines whether the specified TimeSpan is Zero. It checks whether the ticks count is zero.

C#
public static bool IsZero(this TimeSpan source)
Parameters:sourceTimeSpan

The source.

Returns:

bool

true if the specified TimeSpan is zero; otherwise, false.

Rounds the timespan to the second digit after delimiter.

C#
public static TimeSpan Round(this TimeSpan source)
Parameters:sourceTimeSpan

The timespan that will be rounded.

Returns:

TimeSpan

The rounded value.