Yeah, it's forthcoming. I left it out originally just to be conservative in code and function, but it's come up enough that we should add it in for TimePeriods. A good "up for grabs" kind of PR if anyone's feeling up for it.
-Jacob On Sat, Aug 15, 2015 at 10:59 AM, Ian Butterworth <i.r.butterwo...@gmail.com > wrote: > Thanks guys. I ended up using Kaj's approach. Functionality like we > discussed would be good if possible. > > > On Saturday, 15 August 2015 06:16:09 UTC-4, Jeffrey Sarnoff wrote: >> >> What would like two lines of code to do with durations? >> >> On Friday, August 14, 2015 at 7:41:04 PM UTC-4, 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) >>> >>