The time interval represented by the timespan value expressed in whole and fractional hours.
Syntax
float timespan.TotalHours
Returns
A float that corresponds to the number of hours represented by the timespan.
float
Sample
timespanSample.rfsvar a = dtl.New(1605, 11, 05, 6, 45, 32, 43); var b = dtl.New(1914, 7, 28, 5, 42, 21, 10); ... trace (b - a).TotalHours;
timespanSample.rfs
var a = dtl.New(1605, 11, 05, 6, 45, 32, 43); var b = dtl.New(1914, 7, 28, 5, 42, 21, 10); ... trace (b - a).TotalHours;
(b - a).TotalHours
2706214.94693528
Figure 384. The trace message output of the script above
Related links
Search Highlighter (On/Off)