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