Compare()

DateTimeOffset::Compare(const DateTimeOffset&, const DateTimeOffset&) method

Compares two DateTimeOffset objects.

static int System::DateTimeOffset::Compare(const DateTimeOffset &first, const DateTimeOffset &second)

Arguments

ParameterTypeDescription
firstconst DateTimeOffset&First object to compare.
secondconst DateTimeOffset&Second object to compare.

Return Value

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

See Also