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