mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-04 13:14:26 +02:00
Updated Examples and Recipes (markdown)
@@ -384,7 +384,7 @@ Let's say you want to search the globe, and all time, for time zones when the da
|
||||
auto info = z.get_info(begin, tz::utc);
|
||||
if (info.save != 0h && info.save != 1h)
|
||||
{
|
||||
std::cout << z.name() << " has an daylight savings offset of "
|
||||
std::cout << z.name() << " has a daylight savings offset of "
|
||||
<< info.save.count() << "min from " << info.begin
|
||||
<< " UTC to " << info.end << " UTC with the abbreviation "
|
||||
<< info.abbrev << '\n';
|
||||
@@ -415,6 +415,12 @@ To increment the loop, set the local variable `begin` to `info.end`, and look up
|
||||
|
||||
It is really remarkably simple to search the globe and and all time for interesting chronological events related to timezone transitions.
|
||||
|
||||
Sample output of this program:
|
||||
|
||||
Africa/Accra has a daylight savings offset of 20min from 1920-09-01 00:00:00 UTC to 1920-12-30 23:40:00 UTC with the abbreviation GHST
|
||||
...
|
||||
|
||||
|
||||
***
|
||||
|
||||
 _This work is licensed under a [Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/)._
|
Reference in New Issue
Block a user