Method GetTimeSpanFromTicks
GetTimeSpanFromTicks(List<Int64>)
Get time span from ticks
Declaration
List<TimeSpanContract> GetTimeSpanFromTicks(List<long> ticks)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.List<System.Int64> | ticks | List of ticks |
Returns
Type | Description |
---|---|
System.Collections.Generic.List<TimeSpanContract> | Time span from Ticks |
Examples
POST http://YourServerName/InfoShare/Json/Server/GetTimeSpanFromTicks
Example for get time span from ticks.{
"ticks": [1258, 589652, 7412]
}
Response:
{
"GetTimeSpanFromTicksResult": [{
"Ticks": 1258,
"TimeInDays": 1.4560185185185184E-09,
"TimeInMinutes": 2.0966666666666668E-06,
"TimeInYears": 3.9890918315575847E-12
}, {
"Ticks": 589652,
"TimeInDays": 6.8246759259259261E-07,
"TimeInMinutes": 0.00098275333333333343,
"TimeInYears": 1.8697742262810757E-09
}, {
"Ticks": 7412,
"TimeInDays": 8.578703703703703E-09,
"TimeInMinutes": 1.2353333333333334E-05,
"TimeInYears": 2.3503297818366308E-11 }]
}