RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.SecondSpan Function

Returns the number of seconds (including fractions thereof) between two specified TDateTime values.

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

DateUtils

Call SecondSpan to obtain the difference, in seconds, between two TDateTime values. Unlike the SecondsBetween function, which only counts entire seconds, SecondSpan reports incomplete seconds as a fraction of an entire second. 

 

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