Master fixing

I separated the timestring function (into support.cpp) and wrote a unit test for it. If the separation is not Ok I will find another way for testing it.

Bug described in issue #1 is fixed by you in a previous commit but a new one come out: values of 24 hours or more issues the same problem.