take precautions for 32bit time_t/long
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Thu, 1 Feb 2018 09:50:02 +0000 (10:50 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 27 Mar 2019 09:31:38 +0000 (10:31 +0100)
commitcf960f736f6733f3cab2d518df82915b50a8fab2
tree2b72ea752b62feb9e92102d6fb11f455539f2709
parent214a748ae7eeba811c232a136c3020ea730c70d6
take precautions for 32bit time_t/long

Direct handling of time_t or conversions to it from other
representations will cause failures on 32 bit systems. Introduce
an exception ``conversion_error'' to communicate these conditions
from constructors.
src/timefunc.cpp
src/timefunc.hxx
test/test_timefunc.cpp