Commit Graph
123 Commits
Author SHA1 Message Date
Howard Hinnant f00a77882b Update "Changes since" 2017-10-14 20:51:20 -04:00
Howard Hinnant 78c120f74a Have format set exceptions(failbit | badbit)
*  Be sure if something bad happens under the hood it is not silently
   swallowed.
2017-10-14 20:44:16 -04:00
Howard Hinnant 264fd7c62a Add reference to fmt proposal (P0645) 2017-10-14 12:56:21 -04:00
Howard Hinnant bc233c5620 Update examples to reflect new directory structure 2017-10-05 16:04:56 -04:00
Howard Hinnant 1e664d221f Correct some html 2017-09-30 16:13:06 -04:00
Howard Hinnant ed7ed4534d Document get_tzdb_list() 2017-09-30 15:58:29 -04:00
Howard Hinnant 0d7367dbf8 Rename TZ_DB to tzdb
* Bring into alignment with proposal
2017-09-30 14:49:38 -04:00
Howard Hinnant cb7e2e3ced Document custom time zone capabilities 2017-09-16 14:12:30 -04:00
Howard Hinnant 2f8d22b5a0 Fix minor typeos 2017-09-16 14:12:13 -04:00
Howard Hinnant d404599ff5 Introduce the ONLY_C_LOCALE
*Eliminates dependance on on the time_get and time_put facets.
2017-08-18 22:57:29 -04:00
Howard Hinnant b639ed5332 Hard code year::min(), year::max() to [-32767, 32767]
* When year < 0, -year > 0 (always).
* These are the minimal limits C places on short.
* Reserving -32768 is useful in the implementation.
2017-08-15 12:40:03 -04:00
Howard Hinnant 444fa15aa7 Minor clarifications and updates 2017-08-13 22:27:21 -04:00
Howard Hinnant 28fa15c0ae Template zoned_time on TimeZonePtr 2017-08-12 22:32:35 -04:00
Howard Hinnant 4ef96efa94 Make the database list a singly linked list with an atomic head 2017-08-12 19:05:21 -04:00
Howard Hinnant 5a82cda0a5 Merge branch 'gh-pages' of github.com:HowardHinnant/date into gh-pages 2017-08-03 18:12:58 -04:00
Howard Hinnant 597b6e03ce Give weekday_indexed a defaulted default constructor. 2017-07-27 21:31:19 -04:00
Howard Hinnant f8c3c1ae04 Make from_stream and to_stream customization points 2017-07-27 21:27:14 -04:00
Tony Van Eerd 9fcf01e9cc TZ_DB -> tzdb, and fix html bracket 2017-07-18 16:38:03 -04:00
Howard Hinnant c110f40e76 Expose a list<tzdb>
* Existing API always accesses the front of the list.
* Add locate_zone and current_zone member functions to tzdb.
* reload_tzdb() pushes a new database to the front of the list.
* get_tzdb_list() exposes the list<tzdb>&.
2017-07-17 23:05:16 -04:00
Howard Hinnant 0f7fd4a04e Remove errant -> from zoned_time(const time_zone* z) spec 2017-07-07 10:10:05 -04:00
Howard Hinnant 4477981840 Update revision history 2017-07-06 21:08:31 -04:00
Howard Hinnant 161cc2b7fe Add deduction guides to zoned_time
* Encourage seconds precision or finer.
2017-07-06 21:05:19 -04:00
Howard Hinnant 9264a21e1e Update Windows build instructions:
*  DATE_BUILD_LIB
*  NOMINMAX
2017-07-03 16:58:33 -04:00
Howard Hinnant d5951c5476 Pass string_view by value 2017-06-30 12:02:30 -04:00
Howard Hinnant 2b100280c0 Improve spec for year_month - year_month 2017-06-29 21:33:43 -04:00
Howard Hinnant 2b55bdb2e4 Rewrite in terms of string_view 2017-06-29 21:19:50 -04:00
Howard Hinnant cd888b2928 Tighten up year_month_weekday and year_month_weekday_last:
* conversions to sys_days.
2017-06-29 21:06:53 -04:00
Howard Hinnant 609dd49934 Add zoned_time default constructor and,
refine conversion from calendar types to sys_days and local_days.
2017-06-27 22:15:45 -04:00
Howard Hinnant 241551dd6c Allow day overflow in year_month_day to sys_days conversion 2017-06-27 14:08:02 -04:00
Howard Hinnant 8591ae062c Tighten up year spec:
* Define exactly how leap years are computed to avoid ambiguity.

* Define precise values for year::min and year::max which correspond
  to the C minimal limits for short.

* Rewrite year::ok() in terms of min and max.
2017-06-27 13:40:38 -04:00
Howard Hinnant 9a7b301507 Give zoned_time a default constructor 2017-06-26 21:19:09 -04:00
Howard Hinnant b8c749227a Added issue concerning zoned_time default constructor. 2017-06-19 20:36:41 -04:00
Howard Hinnant 0f4737aeaa Initial commit of d0355r4.html 2017-06-19 20:32:31 -04:00
Howard Hinnant 047da3548e Change constraint on format functions
* For the two format functions dependent upon Alloc, constrain against
  basic_ostringstream<charT, traits, Alloc> instead of
  basic_ostream<charT, traits>.
2017-06-18 12:16:27 -04:00
Howard Hinnant ddfaabea00 Reordered template parameter list in several places
* Make consistent with function argument list order.
2017-06-18 12:10:12 -04:00
Howard Hinnant f8f2c9db10 Add paragraph to [time.parse] concerning failbit
*  The entire format string must be parsed, else failbit gets set.
2017-06-18 11:55:34 -04:00
Howard Hinnant ed91190978 Refer to ios_base::failbit, not failbit 2017-06-18 11:49:25 -04:00
Howard Hinnant f62ab2a2e0 Make constexpr literals inline
* Consistent with P0607R0.
2017-06-18 11:43:53 -04:00
Howard Hinnant 6fcb43311f Remove spurious 'class' from operator<< in many places. 2017-06-18 11:32:42 -04:00
Howard Hinnant 5d53bd2244 Fix missing template parameters in zoned_time operator<< 2017-06-18 11:28:09 -04:00
Howard Hinnant 60127222cd Remove spurious Duration template parameter
* From to_stream and from_stream.
* This was just a copy/paste error.
2017-06-18 11:16:48 -04:00
Howard Hinnant 59d8931136 Correct the return type of to_file_time(const sys_time<Duration>& t)
* The mapping between sys_time and file_time can occur at precisions
  coarser than a second because the only anticipated difference
  between these clocks is the epoch, and not the inclusion of leap
  seconds.
2017-06-18 10:53:45 -04:00
Howard Hinnant e7dd17e572 Remove noexcept from to_file_time 2017-06-17 14:44:28 -04:00
Howard Hinnant a83b047ef9 Make file_clock::now() noexcept 2017-06-17 13:30:36 -04:00
Howard Hinnant a6c4c17e9a Remove noexcept from to_XXX_time conversion functions
* The Duration copy might throw.
2017-06-17 13:28:43 -04:00
Howard Hinnant 4f24af489c Make wide string literals in to_stream 2017-06-17 13:22:49 -04:00
Howard Hinnant 87620f4d1f Make to_stream and from_stream return a stream reference 2017-06-17 13:12:27 -04:00
Howard Hinnant 8b51803d7b Minor cleanup in is_clock 2017-06-17 10:34:54 -04:00
Howard Hinnant 7ffdc2450a Reword is_clock and add is_clock_v 2017-06-17 10:28:00 -04:00
Howard Hinnant 8c34cf1e8f Add link to reference 1 2017-06-17 00:00:03 -04:00