getTimeFormat and unit test added.