RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.HourSpan Function

Returns the number of Hours (including fractional Hours) between two specified TDateTime values.

Pascal
function HourSpan(const ANow: TDateTime; const AThen: TDateTime): Double;
C++
Double HourSpan(const TDateTime ANow, const TDateTime AThen);

DateUtils

Call HourSpan to obtain the difference, in hours, between two TDateTime values. Unlike the HoursBetween function, which only counts entire hours, HourSpan reports incomplete hours as a fraction of an entire hour. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!