Learning Boost Library Date Intervals through C++ Source Code

Learning Boost Library Date Intervals through C++ Source Code

After discussing duration classes yesterday, today we will learn about date intervals in Boost. In Boost, boost::gregorian::date_period represents a left-closed, right-open interval on the timeline, with its two endpoints being date objects. A detailed introduction is shown in the image below: Next, let’s take a look at its source code. First, we found its definition … Read more