X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Ftime%2Ftimedelta.cpp;h=7d3d4bb6d2a2ff706ca898582bc241fb72e1a7e2;hb=dff78b5a8a1d947eb3391dd919abfa04a48d589c;hp=891d56007a0316ff5b5a447383aaa72a6dd7ee54;hpb=e1ea831a640fba534e7e42e399f04cdf681ef8d3;p=libs%2Fcore.git diff --git a/source/time/timedelta.cpp b/source/time/timedelta.cpp index 891d560..7d3d4bb 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<