convert_timestamp
Convert Unix timestamps to human-readable dates or date strings back to Unix timestamps. Supports formats like ISO 8601, RFC 2822, and custom outputs.
Instructions
Convert a timestamp between Unix epoch and human-readable date formats.
Use this to translate Unix timestamps (e.g., 1717000000) into ISO 8601
date strings, or convert date strings back to Unix timestamps.
Parameters:
value — The timestamp or date string to convert (required).
Accepts Unix timestamps (seconds since epoch) or various
date string formats like "2025-05-29" or "May 29, 2025".
format — Target output format (default: "iso"). Common values include
"iso", "unix", "rfc2822", etc.
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": {
"value": "<value>"
},
"name": "convert_timestamp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| format | No | iso |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |