时间戳转换
timestamp_convert秒级 Unix 时间戳与日期时间互转,可指定时区(默认 Asia/Shanghai)。用于把时间戳转可读日期或日期转时间戳。Example: {"mode":"to_date","value":1700000000,"timezone":"Asia/Shanghai"}
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "to_date",
"value": 1700000000,
"timezone": "Asia/Shanghai"
},
"name": "timestamp_convert"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | to_date=时间戳转日期;to_ts=日期转时间戳 | to_date |
| value | Yes | 秒级时间戳或日期 YYYY-MM-DD | |
| timezone | No | 时区,默认 Asia/Shanghai | Asia/Shanghai |