-
Notifications
You must be signed in to change notification settings - Fork 0
calendar.h ~ calendar ~ minus
Baptiste Thémine edited this page Aug 11, 2020
·
1 revision
constexpr clock_type minus(const clock_type &left, const clock_type &right) noexcept;
constexpr clock_type minus(const datetime_type &left, const datetime_type &right) noexcept;
Subtract operation on clock_type and datetime_type.
(Mandatory)
left
rigth
If left
and right
can be subtracted without overflow, then returns left-right
else returns CLOCK_NAN
.
If left
and right
are datetime_type, then calendar constraints are taken into account.
Never throws exception.