Re-implemented increment() using time_to_int and int_to_time.