A handy class for managing time intervals.