* Use current TimeStamp for data in stringToDate conversion if it's not specify
Also fix RM pattern and change (A/P)M to (A/P).M.
* Add more tests
* Add TimeStamp validation
Also move duplicated code to functions.
* Add more unit tests for "YY" and "YYY" patterns
* Use Callback for getting current date
It's better because we can mock Callback for unit tests.
* Fix exception and README description
* Add ability to print blr_cast_format
* Put a comment about new BLR in the right place
* Add information about behavior of string to datetime conversion
* Rework old patterns and add new ones
Add A.M, P.M., RR and RRRR patterns.
Rework YY, YYY, HH and HH12 patterns due to new patterns.
Add restriction from SQL standard to format.
Fix incorrect error message for mismatched pattern.
Fix bug with 0 hours in HH12.
* Add more unit tests
* Update doc for cast format
* Allow specification of log_level for BOOST_TESTS in make
* Change enum class to enum in namespace
* Switch from plain enum to constexpr values
---------
Co-authored-by: Artyom Ivanov <artyom.ivanov@red-soft.ru>
We are already using static libstdc++ in Linux due to a problem
now appearing in MacOS when using Boost.Test.
When shared C++ library (with C++ interface) is used and
executable does not export its new/delete operators, a situation
of one program/library allocating objects with "new" operator
and another program/library deallocating them with "delete"
operator makes program to crash.
We haven't yet seen these crashes in Windows, even using
Boost.Test. That may be pure luck or because Microsoft std C++
library is coded in a way that makes it not happen.
resolves "FIXME: For big-endian, be.zip must be used" in Makefile.in
the configure.ac usage of AC_C_BIGENDIAN is expanded so apart from
defining `WORDS_BIGENDIAN` on big-endian platforms, it also defines
`TZDATA_ZIP` to be `be.zip` or `le.zip` and that substitution is used later
in the makefiles
my initial attempt was to use the result of the plain `AC_C_BIGENDIAN`
check, but that is not propagated to the makefiles, just to `autoconf.h`