mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-15 02:08:01 +08:00
Update Posix::time_zone comment with CTAD simplification
This commit is contained in:
parent
9e830536a0
commit
3776e0f185
@ -36,6 +36,11 @@
|
|||||||
// Posix::time_zone tz{"EST5EDT,M3.2.0,M11.1.0"};
|
// Posix::time_zone tz{"EST5EDT,M3.2.0,M11.1.0"};
|
||||||
// zoned_time<system_clock::duration, Posix::time_zone> zt{tz, system_clock::now()};
|
// zoned_time<system_clock::duration, Posix::time_zone> zt{tz, system_clock::now()};
|
||||||
//
|
//
|
||||||
|
// In C++17 CTAD simplifies this to:
|
||||||
|
//
|
||||||
|
// Posix::time_zone tz{"EST5EDT,M3.2.0,M11.1.0"};
|
||||||
|
// zoned_time zt{tz, system_clock::now()};
|
||||||
|
//
|
||||||
// If the rule set is missing (everything starting with ','), then the rule is that the
|
// If the rule set is missing (everything starting with ','), then the rule is that the
|
||||||
// alternate offset is never enabled.
|
// alternate offset is never enabled.
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user