System.DateUtils.WithinPastMinutes
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);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
function | public | System.DateUtils.pas System.DateUtils.hpp |
System.DateUtils | System.DateUtils |
説明
2 つの日付時刻値が互いに指定された分数内にあるかどうかを示します。
WithinPastMinutes 関数を呼び出すと,ANow で指定された日付時刻値が AThen で指定された日付時刻値の AMinutes の分数内にあるかどうかを確認できます。
メモ: WithinPastMinutes は,MinutesBetween 関数を使用します。つまり,端数はカウントされません。ANow と AThen が 2 分半離れている場合,AMinutes を 2 に設定して WithinPastMinutes を呼び出すと,true が返されます。