implement division by scalar for Time and container ops
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Tue, 30 Jan 2018 16:00:07 +0000 (17:00 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Wed, 27 Mar 2019 09:31:38 +0000 (10:31 +0100)
commitc42fd3b38d78f745134fb625a4cd1e2004cabad5
tree7f7d281c486396a2ec795b00a1764b4ff3b067f8
parent2795e39cc40483f3508a7d932f08ecac36e9d729
implement division by scalar for Time and container ops

Add division by integer plus related operations over containers.

As per C++ convention the division functions themselves will not
attempt to handle the case when zero is passed as the divisor.
The functions operating on containers will simply return a zero-
initialized Time object if the argument container is empty.
src/timefunc.cpp
src/timefunc.hxx
test/test_timefunc.cpp