Return the difference of a datetime and a datetime interval.
Synopsis
Declared in <bdlt_datetime.h>
bdlt::Datetime
operator‐(
Datetime const& lhs,
DatetimeInterval const& rhs);
Description
Return a Datetime object having a value that is the difference between the specified lhs (Datetime) and the specified rhs (DatetimeInterval). If 24 == lhs.hour(), the result is the same as if the hour attribute of lhs is 0. The behavior is undefined unless the resulting value is in the valid range for a Datetime object.
Return Value
a Datetime that is the difference of the operands
Parameters
Name |
Description |
lhs |
datetime operand |
rhs |
datetime interval to subtract |
Created with MrDocs