Class TimeSpanExtended
Extension methods for TimeSpan.
Namespace: Evergine.Common.Helpers
Assembly: Evergine.Common.dll
Syntax
public static class TimeSpanExtended
Methods
Divide(TimeSpan, int)
Divides the specified time.
Declaration
public static TimeSpan Divide(this TimeSpan time, int divider)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | time | The time. |
| int | divider | The divider. |
Returns
| Type | Description |
|---|---|
| TimeSpan | The result. |
Divide(TimeSpan, TimeSpan)
Divides the specified time1.
Declaration
public static TimeSpan Divide(this TimeSpan time1, TimeSpan time2)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | time1 | The time1. |
| TimeSpan | time2 | The time2. |
Returns
| Type | Description |
|---|---|
| TimeSpan | The result. |
Multiply(TimeSpan, int)
Multiplies the specified time.
Declaration
public static TimeSpan Multiply(this TimeSpan time, int multipler)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | time | The time. |
| int | multipler | The multipler. |
Returns
| Type | Description |
|---|---|
| TimeSpan | The result. |
Multiply(TimeSpan, TimeSpan)
Multiplies the specified time1.
Declaration
public static TimeSpan Multiply(this TimeSpan time1, TimeSpan time2)
Parameters
| Type | Name | Description |
|---|---|---|
| TimeSpan | time1 | The time1. |
| TimeSpan | time2 | The time2. |
Returns
| Type | Description |
|---|---|
| TimeSpan | The result. |