Time zones + date math
time_convertCurrent time in any time zones, convert a time between zones (DST-correct), and date arithmetic: add/subtract durations, days between dates, weekday, ISO week, Unix time. Computed locally from the IANA time-zone database — no rate limits, exact. Zones are IANA names (America/New_York, Asia/Tokyo, UTC). Price: free. Errors: returns isError with a message for invalid input or an upstream failure (not charged).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "time_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | e.g. "+3d 4h", "-90m", "+2w" | |
| time | No | ISO time, "now", or a Unix timestamp; naive times are read in from_tz | |
| to_tz | No | IANA time zones to convert into. 0-20 items. Default ["UTC"]. | |
| until | No | second ISO date: returns the difference | |
| from_tz | No | IANA time zone the input time is in, e.g. "America/New_York". Default "UTC". | UTC |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| utc | No | ||
| unix | No | ||
| added | No | ||
| iso_week | No | ||
| converted | No | ||
| input_utc | No | ||
| source_zone | No |