System::DateTimeOffset::Compare method

DateTimeOffset::Compare method

Compares two DateTimeOffset objects.

static int System::DateTimeOffset::Compare(const DateTimeOffset &first, const DateTimeOffset &second)
ParameterTypeDescription
firstconst DateTimeOffset&First object to compare.
secondconst DateTimeOffset&Second object to compare.

ReturnValue

-1 - if first is earlier than second, 1 - if first is later than second, 0 - if first is equal to second.

See Also