From Appmethod Libraries
Jump to: navigation, search

Object Pascal

function WithinPastMinutes(const ANow, AThen: TDateTime; const AMinutes: Int64): Boolean;


extern DELPHI_PACKAGE bool __fastcall WithinPastMinutes(const System::TDateTime ANow, const System::TDateTime AThen, const __int64 AMinutes);


Type Visibility Source Unit Parent
function public
System.DateUtils System.DateUtils


Indicates whether two date/time values are within a specified number of minutes of each other.

Call WithinPastMinutes to determine whether the date and time specified by ANow is within AMinutes minutes of the date and time specified by AThen.

Note: WithinPastMinutes uses the MinutesBetween function, which means that fractional minutes do not count. If ANow and AThen are two and a half minutes apart, calling WithinPastMinutes with AMinutes set to 2 returns True.

See Also

Code Examples