Method Days
Days(Int32)
Returns a System.TimeSpan representing the specified number of days.
Declaration
public static TimeSpan Days(this int days)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | days | The number of days in the time span. |
Returns
Type | Description |
---|---|
System.TimeSpan | A System.TimeSpan. |
Days(Int64)
Returns a System.TimeSpan representing the specified number of days.
Declaration
public static TimeSpan Days(this long days)
Parameters
Type | Name | Description |
---|---|---|
System.Int64 | days | The number of days in the time span. |
Returns
Type | Description |
---|---|
System.TimeSpan | A System.TimeSpan. |
Days(Double)
Returns a System.TimeSpan representing the specified number of days.
Declaration
public static TimeSpan Days(this double days)
Parameters
Type | Name | Description |
---|---|---|
System.Double | days | The number of days in the time span. |
Returns
Type | Description |
---|---|
System.TimeSpan | A System.TimeSpan. |
Days(Single)
Returns a System.TimeSpan representing the specified number of days.
Declaration
public static TimeSpan Days(this float days)
Parameters
Type | Name | Description |
---|---|---|
System.Single | days | The number of days in the time span. |
Returns
Type | Description |
---|---|
System.TimeSpan | A System.TimeSpan. |