Show: Delphi C++
Display Preferences

System.DateUtils.CompareTime

From XE2 API Documentation
Jump to: navigation, search

Delphi

function CompareTime(const A, B: TDateTime): TValueRelationship;

C++

extern PACKAGE System::Types::TValueRelationship __fastcall CompareTime(const System::TDateTime A, const System::TDateTime B);

Contents

Properties

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

Description

Indicates the relationship between the time portions of two TDateTime values.

Call CompareTime to compare the two TDateTime values specified by A and B. CompareTime returns:

  • LessThanValue if A occurs earlier in the day than B (even if A occurs on a later day than B).
  • EqualsValue if A occurs at the same time of day as B, ignoring the date portion of the two values.
  • GreaterThanValue if A occurs later in the day than B (even if A occurs on an earlier day than B).

See Also


Code Examples

Personal tools
Previous Versions
Translations