Add or subtract days, hours and minutes from a date-time
add_time_to_datetimeMove a date and clock time forward or back by days, hours and minutes in a US time zone and get the resulting date and time. Days move the calendar date and keep the clock time (the way a phone calendar does); hours and minutes are counted as they really pass, so a daylight saving change inside the span is handled. Use time_duration_between instead to measure the gap between two known date-times, add_to_date for calendar years, months and weeks, and convert_time_zone to show a moment in other zones.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"start_date": "<start_date>",
"start_time": "<start_time>"
},
"name": "add_time_to_datetime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | Days to move. Default 0. | |
| hours | No | Hours to move. Default 0. | |
| minutes | No | Minutes to move. Default 0. | |
| direction | No | add to move forward, subtract to move back. Default add. | add |
| time_zone | No | The time zone the clock times are read in, so a span across a daylight saving change counts the hour that really passes. Use 'none' for plain 24-hour days with no zone. Default America/New_York. | America/New_York |
| start_date | Yes | The date to start from as a calendar date in the form YYYY-MM-DD, for example 2026-11-02. | |
| start_time | Yes | The time to start from as a 24-hour clock time in the form HH:MM, for example 22:30. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| inputs | Yes | The inputs as used, with defaults filled in. | |
| results | Yes | The computed numbers. Unavailable numbers are null. | |
| summary | Yes | One or two plain sentences with the headline numbers. | |
| calculator_url | Yes | The TeamPredict calculator page that shows the same calculation, where a person can change the inputs. |