...世界上最受推崇和设计精良的 C++ 库项目之一。 — Herb Sutter 和 Andrei Alexandrescu,《C++ 编码规范
...世界上最受推崇和设计精良的 C++ 库项目之一。
boost::posix_time::operator-=
// In header: <boost/date_time/posix_time/date_duration_operators.hpp> BOOST_CXX14_CONSTEXPR ptime operator-=(ptime & t, const boost::gregorian::months & m);
从 ptime 中减去一个 months 对象。结果将与 ptime 具有相同的月份中的某一天,除非原始日期是该月的最后一天。有关更多详细信息,请参阅 date_time::months_duration。