Class TimeSpanExtended
Extension methods for TimeSpan instances.
Namespace: Evergine.Common.Helpers
Assembly: Evergine.Common.dll
Syntax
public static class TimeSpanExtended
Methods
Divide(TimeSpan, int)
Divides the specified time by the given divider.
Declaration
public static TimeSpan Divide(this TimeSpan time, int divider)
Parameters
Type | Name | Description |
---|---|---|
Time |
time | The time to be divided. |
int | divider | The value by which to divide the time. |
Returns
Type | Description |
---|---|
Time |
The result of the division. |
Divide(TimeSpan, TimeSpan)
Divides the specified time.
Declaration
public static TimeSpan Divide(this TimeSpan time1, TimeSpan time2)
Parameters
Returns
Type | Description |
---|---|
Time |
The result. |
Multiply(TimeSpan, int)
Multiplies the specified time.
Declaration
public static TimeSpan Multiply(this TimeSpan time, int multiplier)
Parameters
Returns
Type | Description |
---|---|
Time |
The result. |
Multiply(TimeSpan, TimeSpan)
Multiplies the specified time.
Declaration
public static TimeSpan Multiply(this TimeSpan time1, TimeSpan time2)
Parameters
Returns
Type | Description |
---|---|
Time |
The result. |