convert_timestamp
Convert a Unix timestamp (seconds or milliseconds; auto-detected unless unit is given) to a human-readable date in a time zone, with ISO 8601, RFC 2822, UTC offset, DST flag, weekday, and a relative phrase like "3 days ago".
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": {
"timestamp": "<timestamp>"
},
"name": "convert_timestamp"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | Interpretation of timestamp. Default auto. | |
| timezone | No | IANA time zone, e.g. "America/New_York". Defaults to UTC. | |
| timestamp | Yes | Unix timestamp. Values >= 1e11 are treated as milliseconds unless unit is set. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iso | Yes | ISO 8601 with the zone offset. | |
| human | Yes | Readable sentence with weekday, date, time and zone. | |
| 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. | |
| relative | Yes | Relative phrase such as "3 days ago". | |
| 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. |