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
3f092da750
trac-13159, trac-12630: fix maximum year to 9999
2018-01-24 09:44:04 -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
Peter Dimov
2434bc8f4d
Pass input files properly via the run rule
2017-11-13 21:20:41 +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
Andrey Semashev
6b3452954e
Silenced clang warning about unused variable.
2017-08-11 16:10:00 +03:00
Andrey Semashev
587a677ebc
Limit the warning-related pragmas to MSVC, clang and gcc specifically.
2017-08-11 16:04:16 +03:00
Andrey Semashev
d3986cf902
Silence warnings about signed/unsigned mismatch in comparison operators.
2017-08-10 19:08:58 +03:00
Andrey Semashev
82f61328b2
Fixed "invalid character" warnings from clang.
...
The character was indeed not a valid UTF-8 character. Presumably, it is a
valid character in some national encoding, but Unicode is ubiquitous nowdays
and the compiler is not able to know the encoding anyway. Thus the commit
converts the character to a hex-escaped UTF-8 representation of character
U+00FC ('ü').
2017-08-10 19:01:45 +03:00
Andrey Semashev
d972d0cd69
Expand range of values in years overflow test to ensure the whole documented range is allowed.
2017-08-08 19:32:08 +03:00
Andrey Semashev
6af6215e9e
Fixed integer overflow when subtracting many years to a gregorian date.
...
Also added a testcase to detect the overflow.
2017-08-08 17:42:51 +03:00
Andrey Semashev
729af79cc5
Fixed integer overflow when adding many years to a gregorian date.
...
Also added a testcase to detect the overflow.
2017-08-08 17:23: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
ef81faff5f
Added test for bug #5041 - %y in single digit year
...
Ahmed Charles: Tests pass with MSVC 2013.
2014-03-13 15:08:38 -07:00
Marshall Clow
057e0aaf64
Merge DateTime bug fix to Release; Fixes #9216
...
[SVN r86322]
2013-10-15 15:22:02 +00:00
Marshall Clow
072b4e1b61
Fix several 'iterating past the end' bugs in Boost.DateTime; Refs #9216
...
[SVN r86230]
2013-10-10 15:43:31 +00: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
29c0f85c14
Fixed compilation with MSVC.
...
[SVN r80889]
2012-10-06 17:46:27 +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
Marshall Clow
365c29f1a1
Merge bug fixes to release; Fixes #5550 Fixes #6136 Fixes #6513 Fixes #7111 Fixes #7112 Fixes #7113 Fixes #7342 Fixes #7426
...
[SVN r80797]
2012-09-30 23:25:22 +00:00
Marshall Clow
318a6ce7ea
Fix typo in test case; Refs #6513
...
[SVN r80709]
2012-09-26 16:44:40 +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
Marshall Clow
9b94605972
Merge greg_year serialization changes to release; fixes #3633
...
[SVN r79539]
2012-07-15 16:49:32 +00:00
Marshall Clow
e6515ce73c
Refs #3633 ; will close when merged to release
...
[SVN r79228]
2012-07-02 15:14:03 +00:00
Jeff Garland
97c2acd867
minor updates to suppress g++4.6 warnings
...
[SVN r79212]
2012-07-01 17:04:48 +00:00
Jeff Garland
c2861c6305
minor updates to suppress g++4.6 warnings
...
[SVN r79211]
2012-07-01 16:52:34 +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
Steven Watanabe
5c9a890972
Revert [67111] (addition of boost/detail/iomanip.hpp) and all the commits that depend on it. ([68137], [68140], [68141], [68154], and [68165]).
...
[SVN r68168]
2011-01-15 08:11:51 +00:00