implement class UtilCalTime for TDD