datetime_to_timestamp
Convert ISO 8601 datetime strings to Unix timestamps for reliable time calculations.
Instructions
Convert a human-readable datetime string to a Unix timestamp.
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": {
"datetime_str": "<datetime_str>"
},
"name": "datetime_to_timestamp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| datetime_str | Yes | The datetime string in ISO 8601 format. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |