Convert Unix timestamp
timestamp_convertConvert Unix epoch numbers to ISO 8601/UTC strings, or parse date strings into epoch seconds and milliseconds. Timezone-aware and computed locally on the host.
Instructions
Bidirectional Unix timestamp converter. Pass a number (seconds or milliseconds since the Unix epoch) to get ISO 8601 and UTC strings; pass a date string to get the epoch in both seconds and milliseconds. Local, timezone-aware via the host clock.
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": "timestamp_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Epoch number (seconds or milliseconds, auto-detected by magnitude) or a parseable date string |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| iso8601 | Yes | ||
| direction | Yes | ||
| utc_string | Yes | ||
| epoch_seconds | No | ||
| epoch_milliseconds | No |