RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.MinuteSpan Function

Returns the number of minutes, including fractions thereof, between two specified TDateTime values.

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

Call MinuteSpan to obtain the difference, in minutes, between two TDateTime values. Unlike the MinutesBetween function, which only counts entire minutes, MinuteSpan reports incomplete minutes as a fraction of an entire minute. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!