Class DoubleExtensions
Time-related extension methods for
Inheritance
System.Object
DoubleExtensions
Namespace: X10D.Time
Assembly: X10D.dll
Syntax
public static class DoubleExtensions : object
Methods
| Improve this Doc View SourceDays(Double)
Returns a
Declaration
public static TimeSpan Days(this double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The duration, in days. |
Returns
Type | Description |
---|---|
TimeSpan | A |
Hours(Double)
Returns a
Declaration
public static TimeSpan Hours(this double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The duration, in hours. |
Returns
Type | Description |
---|---|
TimeSpan | A |
Milliseconds(Double)
Returns a
Declaration
public static TimeSpan Milliseconds(this double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The duration, in milliseconds. |
Returns
Type | Description |
---|---|
TimeSpan | A |
Minutes(Double)
Returns a
Declaration
public static TimeSpan Minutes(this double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The duration, in minutes. |
Returns
Type | Description |
---|---|
TimeSpan | A |
Seconds(Double)
Returns a
Declaration
public static TimeSpan Seconds(this double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The duration, in seconds. |
Returns
Type | Description |
---|---|
TimeSpan | A |
Weeks(Double)
Returns a
Declaration
public static TimeSpan Weeks(this double value)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | The duration, in weeks. |
Returns
Type | Description |
---|---|
TimeSpan | A |