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