Commit Graph
14 Commits
Author SHA1 Message Date
Howard Hinnant a610f087c1 Add support for the zic-compiled OS-supplied time zone DB:
*  Avoids the need to download the IANA database.

*  Heavily based on contributions by Aaron Bishop.

*  Turn on with -DUSE_OS_TZDB, off by default.

*  Not supported on Windows.

*  Disables HAS_REMOTE_API.

*  get_tzdb().version only supported on Apple.  This string has
   the value "unknown" elsewhere.

*  Leap second support is missing on Apple, and may not be on your
   platform either (please report).  Leap second support is enabled,
   disabled with -DMISSING_LEAP_SECONDS.

   Without leap second support, utc_time, tai_time, and gps_time (and
   those clocks) are not available.

*  On Apple, time zone transitions are only supported in the range:

   1901-12-13 20:45:52 to 2038-01-19 03:14:07

*  On Linux, time zone transitions are only as far in the future as
   the OS-provided transitions go.  There is no support for POSIX-
   style transitions.
2017-06-04 21:04:53 -04:00
Gaspard Petit a811a20748 Fixes minor typos in comments - no actual change to code 2017-03-08 11:28:35 -05:00
Paul Dreik 63e33bdf49 silence warnings in gcc 6.2 2016-11-12 15:19:46 +01:00
Sascha Zelzer 641cd739c3 VS2013's std::vector does not support incomplete template types.
This commit works around this by exposing the zonelet class declaration
to the public tz.h header.
2016-09-15 20:10:04 -04:00
Howard Hinnant ea2d0d3357 constexpr more stuff and clean up whitespace 2016-05-30 22:09:21 -04:00
Howard Hinnant f5f0f80778 Get rid of tz. Hide unnecessary API. Clean up get_info 2016-05-08 22:59:39 -04:00
Howard Hinnant 1e5d2fa8dd Create local and system time types for timezone functions.
* Add sys_time.
* Add sys_days.
* Add sys_seconds.
* Add local_time.
* Add local_days.
* Add local_seconds.
* Rename day_point to sys_days.
* Rename Zone to time_zone.
2016-05-03 23:19:09 -04:00
ivanp2015 b41a55581d Corrections after code review 2015-12-03 13:41:11 +02:00
Ivan Pizhenko 0e64070a33 Correction after code review 2015-12-02 16:22:09 +02:00
ivanp2015 50802176f3 TZ stuff fixed for VS2013 2015-11-29 07:56:59 +02:00
Howard Hinnant 999dfc4b37 Change to MIT copyright
* Added unicode copyright to CLDR-derived mapping.
2015-08-08 17:03:43 -04:00
Howard Hinnant 33f923b508 Rename seconds_point to second_point for consistency with day_point. 2015-08-08 13:20:12 -04:00
Howard Hinnant 9858887551 Correct some silly spelling errors. 2015-07-18 18:58:48 -04:00
Howard Hinnant 796448e4ad Initial commit 2015-07-17 22:30:53 -04:00