RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.DaySpan Function

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

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

DateUtils

Call DaySpan to obtain the difference, in days, between two TDateTime values. Unlike the DaysBetween function, which only counts whole days, DaySpan reports incomplete days as a fraction of an entire day. 

 

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