add fmtTime module

switch case to camelCase
small refactoring