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