PgDAC

TPgInterval.Compare Method

Compares two TPgInterval objects.

Class

TPgInterval

Syntax

function Compare(Value: TPgInterval): integer;

Parameters
Value
Holds a TPgInterval object to compare with.

Remarks

Call the Compare method to compare two TPgInterval objects.

If the current object represents an interval that is longer than Value, Compare returns a positive number. If the current object represents an interval that is shorter than Value, Compare returns a negative number. If the current object equals to Value, Compare returns 0.

Internally INTERVAL values are stored as months, days, and seconds. Compare supposes that months value has more priority than days, and days has more priority than seconds.

© 1997-2024 Devart. All Rights Reserved. Request Support DAC Forum Provide Feedback