time_duration_calculator
Calculate duration between two times or add a duration to a time. Choose between finding time difference or adding hours and minutes.
Instructions
Calculate duration between two times, or add a duration to a time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | duration_between = time between two times | add_duration = add HH:MM to a time | |
| time1 | Yes | First time in HH:MM or HH:MM:SS format | |
| time2 | Yes | Second time / duration to add in HH:MM or HH:MM:SS | |
| spans_midnight | No | Set true if the duration crosses midnight |