Add `add_time()` and unit tests