From f8c7f77a04c35ac5b6a8259b3dcdcf52c44167dd Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Sat, 8 Oct 2016 15:10:20 -0400 Subject: [PATCH] Updated Examples and Recipes (markdown) --- Examples-and-Recipes.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Examples-and-Recipes.md b/Examples-and-Recipes.md index 92a4b23..8fce44a 100644 --- a/Examples-and-Recipes.md +++ b/Examples-and-Recipes.md @@ -574,11 +574,11 @@ Here is a function to perform that conversion: { using namespace date; using namespace std::chrono; - auto utc = utc_clock::sys_to_utc(sys_days{y/jan/1}) + us; - auto sys = utc_clock::utc_to_sys(utc); + auto utc = to_utc_time(sys_days{y/jan/1}) + us; + auto sys = to_sys_time(utc); auto dp = floor(sys); auto d = dp - sys_days{1958_y/jan/1}; - us = utc - utc_clock::sys_to_utc(dp); + us = utc - to_utc_time(dp); auto ms = duration_cast(us); us -= ms; return {static_cast(d.count()),