19 Commits

Author SHA1 Message Date
Jeff Garland
8011fdf0bc ptime from iso error string error with date only (#192)
* fix #189 for autolink -- driveby change to remove gcc2.95 support

* fix #187 date-only case to avoid string exception, beef up error case test
2021-05-02 08:57:36 -07:00
Andrey Semashev
d335a54e9f Add missing includes and fix special_value_from_string definition (#144)
* Added a test generator for whether all public headers are self-contained.

The generator creates a compile test for every public header, unless
BOOST_DATE_TIME_TEST_WITHOUT_SELF_CONTAINED_HEADER_TESTS environment variable
is set to 1.

* Only enable self-contained header tests on a few jobs.

There is no point in performing self-contained header tests on every compiler
configuration, so running them only on some saves CI time.

* Make public headers self-contained.

This commit:

- Adds missing includes.
- Adjusts gregorian namespace qualification in a few places to use use
  equivalent symbols from date_time and not have to include gregorian
  headers.
- Converts tabs to spaces and trims trailing spaces.

This makes the self-contained header tests pass on Linux.

* Move special_value_from_string definition to parsers.hpp.

This resolves different attributes applied to the function definition
in parsers.hpp and greg_month.hpp. The function is now inline and defined
in parsers.hpp.

Also, the commit converts tabs to spaces and trims trailing spaces.

Fixes https://github.com/boostorg/date_time/issues/143.

* Convert tabs to spaces and trim trailing spaces.
2020-04-05 07:27:27 -07:00
Jeff Garland
139f44776d date time misc cleanup (#131)
* remove superflous HAS_MICROSECOND and HAS_MILLISECOND macros

* remove pre 1_33 facet detection for dead compilers
2020-03-12 18:36:13 -07:00
James E. King III
f35bbbe906 trac-3606: fix remaining msvc /W4 complaints (msvc-10.0 and up) 2018-01-17 09:22:22 -05:00
David Callu
ee4ceddc52 add posix_time::from_iso_extended_string 2016-05-26 21:15:13 +02:00
Andrey Semashev
4a238482e8 testfrmwk.hpp moved to the tests directory. It was not a part of the library public interface and should not be seen by users.
[SVN r49932]
2008-11-25 20:36:52 +00:00
Daniel James
9b5d99078e Fix broken copyright urls. Fixes #1573.
[SVN r43422]
2008-02-27 18:51:14 +00:00
Jeff Garland
05de944281 Add tests for subsecond resolution for from_iso_string -- patched to work correctly now.
[SVN r30174]
2005-07-19 11:16:18 +00:00
Jeff Garland
dbe8af4393 add test for truncating extra digits when parsing time duration instead of taking the last n digits incorrectly
[SVN r27936]
2005-04-02 17:58:58 +00:00
Jeff Garland
8a472229cc fix bug in time duration parsing where fractional digits would be incorrect
[SVN r25537]
2004-10-03 14:59:25 +00:00
Jeff Garland
ff4253a4da license update
[SVN r20922]
2003-11-23 16:12:01 +00:00
Jeff Garland
c39bb1ed6f changes to fix negative time durations
[SVN r19956]
2003-09-08 05:34:40 +00:00
Jeff Garland
605d381c3c add a testcase that lacks a full time string
[SVN r19882]
2003-08-30 14:00:19 +00:00
Jeff Garland
82f49159e0 test for parsing negative time durations
[SVN r19835]
2003-08-28 13:46:12 +00:00
Björn Karlsson
d095bd24c1 Added copyright statement and untabified
[SVN r17200]
2003-02-04 14:25:27 +00:00
Jeff Garland
65dc3be200 added iso time parsing routines
[SVN r15913]
2002-10-13 16:51:34 +00:00
Jeff Garland
bf50b61121 fix tabs
[SVN r15188]
2002-09-06 22:07:56 +00:00
Jeff Garland
dc846827e4 first version -- renamed
[SVN r14901]
2002-08-15 18:59:16 +00:00
Jeff Garland
81fd49774b first version of library
[SVN r14825]
2002-08-13 22:52:12 +00:00