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
LE GARREC Vincent
29bb209464
Fix unsigned / signed conversion
...
gregorian_calendar::end_of_month_day returns unsigned short and date constructor uses unsigned short too.
2019-05-10 10:32:15 -04:00
Mana Borwornpadungkitti
345abc6b67
Fix a typo in example of time_duration xmldoc ( #100 )
2019-03-24 08:32:07 -07:00
ehrlin
b0437e2999
Renamed parameter dst_length_minutes to dst_length. ( #96 )
2019-03-04 11:29:48 -05:00
Marcel Raad
5902a0e577
Fix doxygen clang warnings ( #97 )
...
* doxygen: use @tparam for template parameters (clang warns about using @param).
2019-02-25 15:27:45 -05:00
James E. King III
c18805c4ba
update cygwin on CI before building ( #93 )
2018-12-02 20:36:03 -07:00
James E. King III
81d60863b6
Enhance CI for more build coverage
2018-11-02 21:27:05 -04:00
James E. King III
a3d61f0d30
Enhance Travis CI build coverage
2018-10-28 11:37:32 -04:00
Sylvain Joubert
dc5ce19c27
Use nullptr instead of 0 if possible
...
This is to prevent gcc's -Wzero-as-nullptr-constant warnings
2018-09-06 07:22:34 -04:00
James E. King III
66ee8bf48f
fix failing ci jobs in travis
2018-07-14 17:37:59 +00:00
James E. King III
aa19739c55
move ci to boost-ci model
2018-06-17 07:23:14 -04:00
James E. King III
f76ef169a0
make valgrind return error code on failure
2018-05-15 21:16:08 -04:00
James E. King, III
fd5f9aea7c
Work around a gcc-7.3 issue running ubsan on travis CI
...
https://stackoverflow.com/questions/50024731/ld-unrecognized-option-push-state-no-as-needed
2018-04-29 10:07:42 -04:00
James E. King, III
6875e73a03
Add license file
2018-04-29 10:06:38 -04:00
James E. King III
8e1f2be360
improve code coverage results processing
2018-03-07 15:17:47 -05:00
Andrey Semashev
1838518b41
Silence MSVC warnings about conditional expression being constant.
...
The warning is emitted whereever std::numeric_limits<>::is_signed is used
in a conditional statement.
2018-02-10 23:42:44 -05:00
James E. King III
a7ec0146c7
Update README
2018-01-28 10:09:21 -05:00
James E. King III
9690a13c55
Update README
2018-01-28 10:08:41 -05:00
James E. King III
5a70608c65
add jking to maintainers list
2018-01-28 10:05:15 -05: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
960c959f10
update readme and link to boostdep
2018-01-23 18:19:38 -05:00
James E. King III
1a2700d527
fix issues identified by Coverity Scan
2018-01-23 17:57:36 -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
313c1a38f8
Merge pull request #62 from jeking3/trac-3606
...
trac-3606: fix remaining msvc /W4 complaints (msvc-10.0 and up)
2018-01-17 22:10:35 -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
f280794280
fix mingw related build issues on appveyor
2018-01-16 14:27:16 -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
Edward Diener
b1193100b0
Merge pull request #70 from jeking3/issue-56
...
issue-56: fix 32/64 bit test issue with previous fix
2018-01-07 16:24:22 -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
e4379f752e
Merge pull request #68 from jeking3/trac-10087
...
trac-10087: update the time zone database to IANA 2016c
2018-01-07 10:22:15 -05:00
James E. King III
d0aec34055
trac-10087: update the time zone database to IANA 2016c
2018-01-06 11:30:28 -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
6e3761271d
Merge pull request #60 from jeking3/trac-12363
...
trac-12363: fix const correctness issue in operator implementations
2017-12-31 00:05:44 -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
53d5131244
Merge pull request #65 from jeking3/trac-12101
...
trac-12101: fix is_pos_infinity example
2017-12-30 23:23:10 -05:00
Edward Diener
73178412b0
Merge pull request #66 from jeking3/trac-12074
...
trac-12074: fix get_day_of_week documentation
2017-12-30 23:22:31 -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
1a931e2f5e
trac-12074: fix get_day_of_week documentation
2017-12-28 21:36:42 -05:00
James E. King III
f302689484
trac-12101: fix is_pos_infinity example
2017-12-28 21:33:24 -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
af8832799f
trac-12363: fix const correctness issue in operator implementations
2017-12-27 08:22:50 -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
Edward Diener
5d94c6d65d
Updated appveyor file with more testing and using b2 cxxstd.
2017-12-23 15:04:08 -05:00
Edward Diener
313ba3be94
Merge pull request #54 from jeking3/trac-13194
...
trac-13194: fix time input facet processing for %e
2017-12-23 14:29:22 -05:00
Edward Diener
91e931cbc7
Merge pull request #57 from jeking3/fix-rogue-file
...
add a .gitignore file to ignore a file that a test creates
2017-12-22 17:01:21 -05:00