From 7fd122965eb11a4db7489d096b4a43995b47efca Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 31 Jul 2023 21:42:05 -0400 Subject: [PATCH] Updated Examples and Recipes (markdown) --- Examples-and-Recipes.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Examples-and-Recipes.md b/Examples-and-Recipes.md index 5d26bae..fd6c799 100644 --- a/Examples-and-Recipes.md +++ b/Examples-and-Recipes.md @@ -2373,9 +2373,10 @@ tzdb_manager(std::atomic& run) using namespace date; // Get the current UTC time for today's local 02:00, approximation is ok auto tz = current_zone(); - zoned_time check_at{tz, floor(zoned_time{tz, system_clock::now()} - .get_local_time()) + 2h, - choose::latest}.get_sys_time(); + auto check_at = zoned_time{tz, + floor(zoned_time{tz, system_clock::now()} + .get_local_time()) + 2h, choose::latest} + .get_sys_time(); // Initialize clean-trigger for several years in the future auto clean_at = check_at + days{1000}; while (run)