Get Relative Time
relative_timeCompute the relative time from now to a given date-time string. Get the exact time difference in seconds, minutes, hours, or days.
Instructions
Calculates the relative time from now to a given date-time string.
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": {
"time": "<time>"
},
"name": "relative_time"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| time | Yes | The time to compare (format: YYYY-MM-DD HH:mm:ss) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| relativeTime | Yes |