Class TimeSpanExtensions
Provides extensions for TimeSpan data type.
Inherited Members
Namespace: DotNext
Assembly: DotNext.dll
Syntax
public static class TimeSpanExtensions
Methods
View SourceMax(TimeSpan, TimeSpan)
Compares two values to compute which is greater.
Declaration
public static TimeSpan Max(TimeSpan x, TimeSpan y)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | x | The first value to compare. |
| TimeSpan | y | The second value to compare. |
Returns
| Type | Description |
|---|---|
| TimeSpan |
|
Min(TimeSpan, TimeSpan)
Compares two values to compute which is lesser.
Declaration
public static TimeSpan Min(TimeSpan x, TimeSpan y)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | x | The first value to compare. |
| TimeSpan | y | The second value to compare. |
Returns
| Type | Description |
|---|---|
| TimeSpan |
|