From d756bbf8895695291dec6ea8a35df2c730a830c5 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 21 May 2016 13:23:53 -0400 Subject: [PATCH] Updated Boost datetime Examples Translated (markdown) --- Boost-datetime-Examples-Translated.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Boost-datetime-Examples-Translated.md b/Boost-datetime-Examples-Translated.md index 5655020..ddb9b63 100644 --- a/Boost-datetime-Examples-Translated.md +++ b/Boost-datetime-Examples-Translated.md @@ -363,7 +363,7 @@ If your OS supports the `std::locale("de_DE")` the above can be simplified to: using namespace date; auto zone = current_zone(); auto d = year_month_day{floor( - zone->to_local(system_clock::now()).first)}; + zone->to_local(system_clock::now()))}; auto d2 = d + months{1}; if (!d2.ok()) d2 = d2.year()/d2.month()/last; // boost snaps to last