timestamp_convert
Convert Unix seconds, Unix milliseconds, RFC 3339 or a YYYY-MM-DD date into normalized UTC forms. Use it to compare or store times from different APIs or logs; output is always UTC, with no conversion to other time zones. With from auto (default), an integer of 13 or more digits is read as milliseconds, a shorter one as seconds, and YYYY-MM-DD as a UTC date. Runs without network access and does not store your input. Returns input_format, rfc3339, unix, unix_ms, date_utc, time_utc and weekday; an unparseable value is an error.
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 |
|---|---|---|---|
| from | No | Input format. Default auto. | |
| value | Yes | Timestamp value. | |
| l402_proof | No | L402 payment proof "<macaroon>:<preimage>". Omit on the first call; an unpaid call returns a 0 sat Lightning invoice and the macaroon. Pay the invoice, then repeat the call with this argument set. |