Show: Delphi C++
Display Preferences

System.DateUtils.WithinPastMinutes

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

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

Properties

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

Description

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

Personal tools
In Other Languages
Previous Versions
Assistance