Returns the number of whole hours between two specified TDateTime values.
function HoursBetween(const ANow: TDateTime; const AThen: TDateTime): Int64;
Int64 HoursBetween(const TDateTime ANow, const TDateTime AThen);
DateUtils
Call HoursBetween to obtain the difference, in hours, between two TDateTime values. HoursBetween counts only entire hours. Thus, HoursBetween reports the difference between 9:00 AM and 9:59:59 AM as 0 because the difference is one second short of an entire hour.
MillisecondsBetween
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
What do you think about this topic? Send feedback!
|