parse_datetime
Parse a date/time string (ISO 8601, RFC 2822, HTTP date, SQL "YYYY-MM-DD HH:mm:ss", or a Unix timestamp) into a Unix timestamp and a normalized description. Strings without an offset are interpreted in the given time zone.
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": {
"input": "<input>"
},
"name": "parse_datetime"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The date/time text to parse. | |
| timezone | No | Zone to assume when the input carries no offset, and to report the result in. Defaults to UTC. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iso | Yes | ISO 8601 with the zone offset. | |
| human | Yes | Readable sentence with weekday, date, time and zone. | |
| input | Yes | The text that was parsed. | |
| is_dst | Yes | Whether daylight-saving time is in effect. | |
| offset | Yes | UTC offset, e.g. "+09:00". | |
| rfc2822 | Yes | RFC 2822 date string. | |
| utc_iso | Yes | ISO 8601 in UTC (Z). | |
| weekday | Yes | Full weekday name in English. | |
| timezone | Yes | IANA zone name. | |
| abbreviation | Yes | Zone abbreviation at that instant, e.g. "BST". | |
| epoch_millis | Yes | Unix time in milliseconds. | |
| epoch_seconds | Yes | Unix time in seconds. | |
| offset_minutes | Yes | UTC offset in minutes. |