Aspose::Cells::Date::operator- method

Date::operator-(const Duration&) const method

Subtracts a time interval from the current Date.

Date Aspose::Cells::Date::operator-(const Duration &ts) const
ParameterTypeDescription
tsconst Duration&The Duration to subtract.

ReturnValue

A new Date with the applied offset.

See Also

Date::operator-(const Date&) const method

Computes the difference between two Date instances.

Duration Aspose::Cells::Date::operator-(const Date &other) const
ParameterTypeDescription
otherconst Date&The other Date.

ReturnValue

A Duration representing the interval between the two dates.

See Also