Fix inserting zero after decimal point and unnecessary zeros

* Fix issue #21 
* Fix output if seconds end with .0
* Fix output: if seconds are zero and with milliseconds then fill seconds with zeros.