mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-05 21:54:27 +02:00
Updated Examples and Recipes (markdown)
@@ -143,7 +143,7 @@ Sometimes it is convenient to specify the time independent of either timezone.
|
|||||||
|
|
||||||
auto utc = sys_days{2016_y/jul/8} + 13h;
|
auto utc = sys_days{2016_y/jul/8} + 13h;
|
||||||
auto ny = make_zoned("America/New_York", utc);
|
auto ny = make_zoned("America/New_York", utc);
|
||||||
auto moscow = make_zoned("Europe/Moscow", etc);
|
auto moscow = make_zoned("Europe/Moscow", utc);
|
||||||
|
|
||||||
I reordered the date to y/m/d just to show that I could. As long as the first unit is unambiguous (`year`, `month` or `day`), the following two are unambiguous (only `y/m/d`, `d/m/y` and `m/d/y` are accepted; all others are rejected at compile time).
|
I reordered the date to y/m/d just to show that I could. As long as the first unit is unambiguous (`year`, `month` or `day`), the following two are unambiguous (only `y/m/d`, `d/m/y` and `m/d/y` are accepted; all others are rejected at compile time).
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user