Метод System::DateTimeOffset::CompareTo

DateTimeOffset::CompareTo(const DateTimeOffset&) const method

Сравнивает два объекта DateTimeOffset.

int System::DateTimeOffset::CompareTo(const DateTimeOffset &other) const
ПараметрТипОписание
otherconst DateTimeOffset&Object для сравнения.

ReturnValue

-1 - if current object is earlier than other, 1 - if current object is later than other, 0 - if current object is equal to other.

См. также

DateTimeOffset::CompareTo(const SharedPtr<Object>&) const method

Сравнивает два объекта DateTimeOffset.

int System::DateTimeOffset::CompareTo(const SharedPtr<Object> &obj) const
ПараметрТипОписание
objconst SharedPtr<Object>&Object для сравнения.

ReturnValue

-1 - if current object is earlier than obj, 1 - if current object is later than obj, 0 - if current object is equal to obj.

См. также