Equals()

TimeSpan::Equals(TimeSpan) const method

Determines if the time interval represented by the current object is equal to the time interval represented by the specified object.

constexpr bool System::TimeSpan::Equals(TimeSpan value) const

Arguments

ParameterTypeDescription
valueTimeSpanThe TimeSpan object to compare the current object with

Return Value

True if the current object and the specified object represent the same time interval, otherwise - false

TimeSpan::Equals(const SharedPtr<Object>&) const method

Determines if the time interval represented by the current object is equal to the time interval represented by the specified object.

bool System::TimeSpan::Equals(const SharedPtr<Object> &obj) const

Arguments

ParameterTypeDescription
objconst SharedPtr<Object>&The TimeSpan object to compare the current object with

Return Value

True if the current object and the specified object represent the same time interval, otherwise - false

TimeSpan::Equals(TimeSpan, TimeSpan) method

Returns true if the specified objects represent the same time interval, otherwise - false.

static constexpr bool System::TimeSpan::Equals(TimeSpan a, TimeSpan b)

See Also