Class TimeSpanExtensions
The TimeSpanExtensions class.
Inheritance
System.Object
TimeSpanExtensions
Assembly: Emby.Media.Model.dll
public static class TimeSpanExtensions
Methods
Declaration
public static TimeSpan days(this double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
public static TimeSpan days(this int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
public static TimeSpan hours(this double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
public static TimeSpan hours(this int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
public static TimeSpan minutes(this double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
public static TimeSpan minutes(this int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
public static TimeSpan ms(this double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
public static TimeSpan ms(this int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
public static TimeSpan seconds(this double value)
Parameters
Type |
Name |
Description |
System.Double |
value |
|
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
public static TimeSpan seconds(this int value)
Parameters
Type |
Name |
Description |
System.Int32 |
value |
|
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
public static TimeSpan SecondsAsTimeSpan(this decimal dec)
Parameters
Type |
Name |
Description |
System.Decimal |
dec |
|
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
public static TimeSpan SecondsAsTimeSpan(this double dbl)
Parameters
Type |
Name |
Description |
System.Double |
dbl |
|
Returns
Type |
Description |
System.TimeSpan |
|
Declaration
public static TimeSpan? SecondsAsTimeSpan(this decimal? dec)
Parameters
Type |
Name |
Description |
System.Nullable<System.Decimal> |
dec |
|
Returns
Type |
Description |
System.Nullable<System.TimeSpan> |
|
Declaration
public static TimeSpan? SecondsAsTimeSpan(this double? dbl)
Parameters
Type |
Name |
Description |
System.Nullable<System.Double> |
dbl |
|
Returns
Type |
Description |
System.Nullable<System.TimeSpan> |
|