diff --git a/Examples-and-Recipes.md b/Examples-and-Recipes.md index ebb759c..e64b20b 100644 --- a/Examples-and-Recipes.md +++ b/Examples-and-Recipes.md @@ -443,8 +443,8 @@ Ever wonder how the global use of daylight saving time is trending with time? H for (auto& z : db.zones) { ++total; - auto info1 = z.get_info(sys_days{y/jan/15}, tz::utc); - auto info2 = z.get_info(sys_days{y/jul/15}, tz::utc); + auto info1 = z.get_info(sys_days{y/jan/15}); + auto info2 = z.get_info(sys_days{y/jul/15}); if (info1.save != 0min || info2.save != 0min) ++use_daylight; } @@ -453,7 +453,7 @@ Ever wonder how the global use of daylight saving time is trending with time? H } } -This code loops over a wide range of years, and then for each year, loops over all timezones in the database, and for each timezone, detects whether it is switching back and forth between standard time and daylight time for that year. The switch detection is rather crude, but you can make this detection as elaborate as you want. Currently it picks two dates 6 months apart which are unlikely to both be using standard time if the zone is using daylight saving time that year. For each of those two dates, the `Info.save` member is checked. If either `save != 0min`, daylight saving is in use that year. +This code loops over a wide range of years, and then for each year, loops over all timezones in the database, and for each timezone, detects whether it is switching back and forth between standard time and daylight time for that year. The switch detection is rather crude, but you can make this detection as elaborate as you want. Currently it picks two dates 6 months apart which are unlikely to both be using standard time if the zone is using daylight saving time that year. For each of those two dates, the `sys_info.save` member is checked. If either `save != 0min`, daylight saving is in use that year. The results of this program are plotted below (the plotting code is not part of the above program).