rewrite of timeparsermethods
and some code cleaning