Updated Boost datetime Examples Translated (markdown)

Howard Hinnant
2017-07-07 20:14:51 -04:00
parent 8c3531f259
commit cd01e92ba4

@@ -221,14 +221,13 @@ main()
``` ```
<a name="Date_Period_Calculations"></a> <a name="Date_Period_Calculations"></a>
### Date Period Calculations ### Date Period Calculations
```c++
#include "date.h"
#include <iostream>
#include "date.h" int
#include <iostream> main()
#include <iterator> {
int
main()
{
using namespace date; using namespace date;
using date_period = std::pair<year_month_day, year_month_day>; using date_period = std::pair<year_month_day, year_month_day>;
constexpr date_period ps[] = constexpr date_period ps[] =
@@ -249,8 +248,8 @@ main()
<< d << " --> " << d << " --> "
<< p.first << " / " << p.second << '\n'; << p.first << " / " << p.second << '\n';
} }
} }
```
<a name="Print_Holidays"></a> <a name="Print_Holidays"></a>
### Print Holidays ### Print Holidays