Updated Examples and Recipes (markdown)

Howard Hinnant
2023-07-31 21:42:05 -04:00
parent 2c683e6299
commit 7fd122965e

@@ -2373,9 +2373,10 @@ tzdb_manager(std::atomic<bool>& 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<days>(zoned_time{tz, system_clock::now()}
.get_local_time()) + 2h,
choose::latest}.get_sys_time();
auto check_at = zoned_time{tz,
floor<days>(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)