From af9c6e51dbede6e854e5432634dc35df86190503 Mon Sep 17 00:00:00 2001 From: HowardHinnant Date: Sat, 5 Sep 2015 16:07:12 -0400 Subject: [PATCH] Updated Boost datetime Examples Translated (markdown) --- Boost-datetime-Examples-Translated.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Boost-datetime-Examples-Translated.md b/Boost-datetime-Examples-Translated.md index 804b3e5..86f721f 100644 --- a/Boost-datetime-Examples-Translated.md +++ b/Boost-datetime-Examples-Translated.md @@ -386,14 +386,16 @@ look if ported to this library. using namespace std::chrono; using namespace date; // get the current time from the clock -- one second resolution - auto now = floor(current_zone()->to_local(system_clock::now()).first); + auto now = floor(current_zone()-> + to_local(system_clock::now()).first); // Get the date part out of the time auto today = floor(now); auto tomorrow = today + days{1}; // midnight for (auto i = now; i < tomorrow; i += 1h) std::cout << i << '\n'; auto remaining = tomorrow - now; - std::cout << "Time left until midnight: " << make_time(remaining) << '\n'; + std::cout << "Time left until midnight: " + << make_time(remaining) << '\n'; }