Show: Delphi C++
Display Preferences

System.DateUtils.MinutesBetween

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

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

C++

extern DELPHI_PACKAGE __int64 __fastcall MinutesBetween(const System::TDateTime ANow, const System::TDateTime AThen);

Properties

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

Description

Returns the number of minutes between two specified TDateTime values.

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 A.M. and 9:00:59:999 A.M. as 0, because the difference is one millisecond short of an entire minute.

MinutesBetween always returns a positive result and therefore the parameter values are interchangeable.

See Also


Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance