RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.MinutesBetween Function

Returns the number of minutes between two specified TDateTime values.

Pascal
function MinutesBetween(const ANow: TDateTime; const AThen: TDateTime): Int64;
C++
Int64 MinutesBetween(const TDateTime ANow, const TDateTime AThen);

Call MinutesBetween to obtain the difference, in minutes, between two TDateTime values. MinutesBetween counts only entire minutes. Thus, MinutesBetween reports the difference between 9:00:00 AM and 9:00:59:999 AM as 0 because the difference is one millisecond short of an entire minute. 

 

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