Implemented TimeHandler.
Wrote tests for TimeHandler.