On Saturday, August 15, 2015 at 5:59:36 AM UTC-4, Kaj Wiik wrote:
>
> You can get Int64 value by duration.value and convert 'by hand' from 
> there. A possibility to convert from Millisecond to DateTime would be 
> nice...
>  
> There should be 
>
   

>      durationAB = DateTimeB - DateTimeA
>
         rational_hours = convert(Hour, durationAB) 
          

>
>
>
> On Saturday, August 15, 2015 at 2:41:04 AM UTC+3, Ian Butterworth wrote:
>>
>> Trying to get the number of hours between these two dates (ideally "x 
>> hours and y minutes"), but can't figure out how to convert the duration 
>> variable into hours. The bottom line currently errors
>>
>> timein = "2015/8/13 10:19:50"
>> timein2 = "2015/8/14 13:12:34"
>>
>> time_series[1] = DateTime(timein,"yyyy/mm/dd HH:MM:SS")
>> time_series[2] = DateTime(timein2,"yyyy/mm/dd HH:MM:SS")
>>
>> duration = time_series[2]-time_series[1]
>> Dates.Hour(duration)
>>
>

Reply via email to