Returns the number of Hours (including fractional Hours) between two specified TDateTime values.
function HourSpan(const ANow: TDateTime; const AThen: TDateTime): Double;
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!
|