Jeff Garland
e26fd2ed98
pull develop to master for boost 1.72 ( #117 )
...
* Synchronize each miscrosec test to the next second (#109 )
* Synchronize each miscrosec test to the next second
The aim is to avoid false positives in test_microsec when the seconds,
minutes or hours change during time read between the second_clock and
the microsec_clock.
* Improved readability of the microcec_time_clock test
* Improve performance of adding and subtracting time durations from a ptime. (#99 )
Modifying ptime objects by adding and subtracting time durations was
inefficient because it extracted the date and time of day and then
re-constructed a ptime using the date and modified time of day.
This can be avoided by using the existing time_system utilities which
perform the operation by adjusting the number of ticks.
Performance is improved by a factor of 48 on my system.
* Update CI Scripts
* Add time_duration helper functions: (#113 )
1. is_positive()
- Return boolean value to indicate whether or not time duration is
positive.
2. is_zero()
- Return boolean value to indicate whether or not time duration is
zero.
3. abs()
- Return a time_duration which is the absolute value of time
duration.
Added documentation for these helper functions and improved existing
documentation to indicate constness, return values or static
functions.
* Cease dependence on MPL (#115 )
2019-12-03 17:06:28 -07:00
James E. King III
dae0fa1b47
quiet unused variable warnings in compile_fail tests
2018-01-28 10:04:59 -05:00
James E. King III
8b92513a94
trac-1078: given to_iso_string can print special values, make from_iso_string read them
2018-01-22 15:49:25 -05:00
James E. King III
d8a1ed32fb
add codecov.io, cppcheck, ubsan, and coverity scan support; refactor travis to use jobs
2018-01-21 20:14:06 -05:00
James E. King III
e0da18162a
trac-9882: fix gcc -Wshadow errors and warnings enabled by trac-3606
2018-01-17 09:22:22 -05: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
James E. King III
18b6ca8160
trac-11142: fix boost::date_time::period_parser::delimiter_strings and add a unit test for it
...
also added project declarations to jamfiles, added a top level jamfile, and fixed the xmldoc jamfile
also fixed a silent failure y2038 issue in localtime handling and fixed a timezone database parse issue
2018-01-16 12:46:45 -05:00
James E. King III
e78132c031
issue-56: fix 32/64 bit test issue with previous fix
2018-01-07 11:23:14 -05:00
Edward Diener
3c794d085a
Catch any runtime exception which could occur when calling c_time:local_time.
2017-12-31 21:18:41 -05:00
Edward Diener
00ab3d7226
Merge pull request #64 from jeking3/trac-11168
...
trac-11168: special_values handling in time duration helpers
2017-12-31 00:42:27 -05:00
Edward Diener
2bf11e74a2
Merge pull request #59 from jeking3/trac-12910
...
trac-12910: allow %j without a year specifier - uses epoch year
2017-12-30 23:32:49 -05:00
Edward Diener
2e4a3010f0
Merge pull request #58 from jeking3/issue-56
...
issue-56: fix binary serialization compatibility problem with time_duration
2017-12-30 16:26:42 -05:00
James E. King III
de171954fe
Fix serialization problem with time_duration
...
This fixes #56
2017-12-29 23:38:44 -05:00
James E. King III
f9f2aaf521
trac-11168: ensure special values are not automatically translated to integral types in the hours, minutes, seconds, and fractional seconds time duration helpers
2017-12-28 14:44:01 -05:00
James E. King III
e87b7120ac
trac-12910: allow %j without a year specifier - uses epoch year
2017-12-26 12:02:14 -05:00
James E. King, III
b3b6ddd5ba
trac-13194: fix time input facet processing for %e
2017-12-22 08:02:24 -05:00
Peter Dimov
53da52ee05
Bracket archive use to fix xml serialization test failures
2017-11-13 21:44:04 +02:00
Andrey Semashev
266e6cc8e1
Silence MSVC warnings about unused exception variables in tests.
2017-08-28 20:06:24 +03:00
Andrey Semashev
b3a1f75376
Silence MSVC warning about possible integer truncation.
2017-08-28 20:05:46 +03:00
David Callu
ee4ceddc52
add posix_time::from_iso_extended_string
2016-05-26 21:15:13 +02:00
Andrey Semashev
ae536816ee
Restored to_time_t() function removed by commit 6636f49f13
.
2014-05-31 20:46:36 +04:00
K. Noel Belcourt
6636f49f13
Merge branch 'master' into develop
2014-05-09 20:36:03 -06:00
Daniel James
6f82742918
Add some automatic checks to testc_local_adjustor.
...
Not full tests, but enough to catch the error fixed in
344c0dceb4
.
2014-04-07 22:30:38 +01:00
Marshall Clow
5126bfbc0a
Added missing call 'to_time_t' (and tests)
...
[SVN r84284]
2013-05-14 21:22:01 +00:00
Andrey Semashev
6bbd9f50bc
Merged changes from trunk. Fixes #3471 .
...
[SVN r80940]
2012-10-10 19:05:03 +00:00
Andrey Semashev
98bbc0b95c
Fixed compilation with MinGW.
...
[SVN r80890]
2012-10-06 17:54:32 +00:00
Andrey Semashev
11974f29b2
Refs #3471 . Precompute the duration conversion coefficient to avoid integer overflow. Added a test for integer overflow in the subsecond duration constructor.
...
[SVN r80887]
2012-10-06 17:34:06 +00:00
Daniel James
693c89198f
Merge some old datetime changes to release
...
- [70756] Convert jamfile for examples to boost build v2.
- [79211][79212] Suppress g++4.6 warnings in tests.
- Document NO LIB option. Fixes #6077 .
[SVN r80629]
2012-09-22 16:21:43 +00:00
Jeff Garland
97c2acd867
minor updates to suppress g++4.6 warnings
...
[SVN r79212]
2012-07-01 17:04:48 +00:00
Marshall Clow
0872610990
Merge fixes to release; Fixes #5126
...
[SVN r71250]
2011-04-14 15:58:01 +00:00
Marshall Clow
1e00a75273
Applied patch; Refs #5126
...
[SVN r71190]
2011-04-11 18:09:59 +00:00
Andrey Semashev
2cf2957cd5
Merged changes from trunk (rev. 62450). Fixes #3876 .
...
[SVN r62667]
2010-06-09 16:33:36 +00:00
Andrey Semashev
901cb1fd20
Refs #3876 . Made format flags %T and %R to be processed by the library in order to support them on more platforms. Also marked some flags that are known to have similar problems in the docs.
...
[SVN r62450]
2010-06-05 17:09:37 +00:00
Andrey Semashev
1510fb009d
Merged fixes for #287 , #1859 and partially #1861 . Improved diagnostics in case of test failures.
...
[SVN r53618]
2009-06-04 08:24:49 +00:00
Andrey Semashev
8e9f05161d
Improved diagnostics in case of test failure.
...
[SVN r53528]
2009-06-01 09:02:43 +00:00
Andrey Semashev
fbab6c1ddf
Merged fixes for #2688 and #2698 from trunk.
...
[SVN r50942]
2009-02-01 11:29:43 +00:00
Andrey Semashev
15c4ebd523
Removed dereferencing of end iterators of strings, which could cause crashes on MSVC. Fixed #2698 .
...
[SVN r50877]
2009-01-29 18:54:17 +00:00
Andrey Semashev
86a65b062a
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 r49946]
2008-11-26 21:07:14 +00: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
Andrey Semashev
ee9241c634
Merged fixes from trunk: tickets 2521, 2523.
...
[SVN r49893]
2008-11-23 11:13:35 +00:00
Andrey Semashev
4ea026b835
In FILETIME support functions fixed a possible integer wrapping that would cause to invalid conversion of FILETIME before 1970-01-01 into a DateTime time. In time facet changed the reaction on a too long hours string to an assert rather than truncating the string. Updated docs and tests to reflect these changes.
...
[SVN r49874]
2008-11-22 12:49:20 +00:00
Andrey Semashev
a2049a59d6
Merged various fixes from trunk.
...
[SVN r49705]
2008-11-12 19:37:53 +00:00
Andrey Semashev
1dd61b0f86
The test now operates on strings rather than files. This was made in order to reduce possible influence from the file system and improve diagnostics in case of failure.
...
[SVN r49612]
2008-11-06 16:03:44 +00:00
Andrey Semashev
b59c3dab04
Fixed exception handling that led to exception type slicing in some cases and simply inefficient code in others.
...
[SVN r49610]
2008-11-06 15:43:07 +00:00
Andrey Semashev
d170c71007
Fixed a number of misprints in the documentation, added change notes for
...
the latest commit. The tests are modified to support the latest changes.
[SVN r49506]
2008-11-01 10:36:57 +00:00
Daniel James
c9f634b1d4
Merged revisions 43211,43214-43219,43222-43225,43227-43238,43242,43244-43245,43249-43250,43257-43259,43261,43263,43265,43267-43268,43270-43271,43273,43275-43279,43284-43289,43291,43295,43297-43298,43304-43305,43307,43313,43315,43324,43326-43327,43331,43333,43339-43343,43345,43348,43350,43352-43353,43355-43356,43358,43360,43366-43367,43369-43370,43372-43376,43378-43389,43394,43396-43398,43400-43401,43403-43404,43406-43408,43413-43415,43417-43418,43420,43422-43423 via svnmerge from
...
https://svn.boost.org/svn/boost/trunk
........
r43417 | danieljames | 2008-02-26 22:04:55 +0000 (Tue, 26 Feb 2008) | 2 lines
Fix a link to Boost.Bimap.
........
r43418 | danieljames | 2008-02-26 22:07:25 +0000 (Tue, 26 Feb 2008) | 2 lines
Change another link that's no longer in the repository to link to the website.
........
r43422 | danieljames | 2008-02-27 18:51:14 +0000 (Wed, 27 Feb 2008) | 1 line
Fix broken copyright urls. Fixes #1573 .
........
r43423 | danieljames | 2008-02-27 19:22:01 +0000 (Wed, 27 Feb 2008) | 1 line
Fix incorrect links to copyright of the form 'http:#www.boost.org
........
[SVN r43425]
2008-02-27 20:00:24 +00:00
Daniel James
9b5d99078e
Fix broken copyright urls. Fixes #1573 .
...
[SVN r43422]
2008-02-27 18:51:14 +00:00
Jeff Garland
2cbb73d151
SF tracker 1672139 - fix end time in au_dst_traits to 3 hours instead of 2
...
[SVN r37130]
2007-03-02 05:19:06 +00:00
Jeff Garland
2a19fc5fb0
SF tracker 1672139 - fix end time in au_dst_traits to 3 hours instead of 2
...
[SVN r37130]
2007-03-02 05:19:06 +00:00
Jeff Garland
461e80afd6
Changes to fix the compile-time dst rules engines for 2007 US and Canada dst changes
...
[SVN r37128]
2007-03-02 02:04:55 +00:00