Howard Hinnant 4358ea7b6e [API BREAKING] Remove conversion from weekday to unsigned
* There has been a great deal of anguish over the encoding of
  weekdays:  whether [0, 6] maps to [Sunday, Saturday] or
  [1, 7] maps to [Monday, Sunday].  This commit attempts
  to address that issue, but will break a small amount of
  code at compile-time.  See below on how to fix that.

* The weekday constructor used to accept [0, 6] to represent
  [Sunday, Saturday].  It now accepts [0, 7] to represent
  [Sunday, Saturday] with both 0 and 7 mapping to Sunday.

* The conversion from weekday to unsigned has been removed.

* To convert a weekday to unsigned replace:

      auto u = unsigned{wd};

  with:

      auto u = (wd - Sunday).count();

  This maps [Sunday, Saturday] to [0, 6], which is the
  C/POSIX mapping.  If you prefer the ISO mapping
  ([Monday, Sunday] -> [1, 7]), then do:

      auto u = (wd - Monday).count() + 1;
2018-06-02 22:55:35 -04:00
2016-05-30 15:08:46 -04:00
2016-10-16 23:13:36 -04:00
2018-03-15 16:09:16 -04:00
2018-03-16 14:33:26 -04:00
2016-06-27 22:36:48 -04:00
2016-07-04 16:33:59 -04:00
2016-06-26 18:49:51 -04:00
2016-06-27 22:36:48 -04:00
2018-06-02 22:04:02 -04:00
S
Description
A date and time library based on the C++11/14/17 <chrono> header
4.7 MiB
Languages
C++ 98.3%
Objective-C++ 1%
Shell 0.5%
C 0.1%