RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
DateUtils.CompareTime Function

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

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

DateUtils

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 of 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). 

 

SameTime 

ConvUnitCompareValue 

CompareValue 

CompareDateTime 

CompareDate

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!