Class
TimeSpanExtensions

Holds TimeSpan extension methods.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

cs-api-definition
public static class TimeSpanExtensions

Inheritance: objectTimeSpanExtensions

Methods

IsNegative(TimeSpan)

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

Declaration

cs-api-definition
public static bool IsNegative(this TimeSpan source)

Parameters

source

TimeSpan

The source.

Returns

bool

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

IsZero(TimeSpan)

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

Declaration

cs-api-definition
public static bool IsZero(this TimeSpan source)

Parameters

source

TimeSpan

The source.

Returns

bool

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

Round(TimeSpan)

Rounds the timespan to the second digit after delimiter.

Declaration

cs-api-definition
public static TimeSpan Round(this TimeSpan source)

Parameters

source

TimeSpan

The timespan that will be rounded.

Returns

TimeSpan

The rounded value.