X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Ftime%2Ftimedelta.cpp;h=f7b037ea7d154dac0e7b931106fbd2932a1dbbba;hb=80bbee2f401b4af71cb1b80508bdb0d2bb61fa40;hp=891d56007a0316ff5b5a447383aaa72a6dd7ee54;hpb=e1ea831a640fba534e7e42e399f04cdf681ef8d3;p=libs%2Fcore.git diff --git a/source/time/timedelta.cpp b/source/time/timedelta.cpp index 891d560..f7b037e 100644 --- a/source/time/timedelta.cpp +++ b/source/time/timedelta.cpp @@ -1,91 +1,75 @@ /* -This file is part of libmspframework +This file is part of libmspcore Copyright © 2006 Mikko Rasa, Mikkosoft Productions Distributed under the LGPL */ #include +#include #include "timedelta.h" #include "units.h" using namespace std; -namespace Msp { -namespace Time { +namespace { void print_part(ostream &out, int64_t &value, int64_t unit, char sep, bool &first) { - if(value>=unit || !first) - { - if(first) - out<