The number of hours between datetimes.
The number of hours between two datetimes
|FromDateTime||A starting datetime in OI internal format. (REQUIRED)|
|ToDateTime||An ending datetime in OI internal format. (REQUIRED)|
|Fractional||Determines if the span should be in whole hours or fractional hours. (OPTIONAL)|
The "HourSpan" service calculates the number of hours between two datetimes. The result will be positive if the starting datetime comes before the ending datetime and negative if the ending datetime comes first.
If Fractional is set to 1, which is the default, you will get a decimal number if the minute and seconds are not the same for each datetime. If you want whole hours only, set Fractional to 0.