日期差异计算器
计算两个日期之间的差异,以多种时间单位表示
API 文档
请求端点
POST /zh/api/tools/date-difference
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| startDate | date | 是 | - |
| endDate | date | 是 | - |
| includeWeekdays | checkbox | 否 | - |
| includeBusinessDays | checkbox | 否 | - |
| precision | number | 否 | - |
响应格式
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}
JSON数据:
JSON数据
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-date-difference": {
"name": "date-difference",
"description": "计算两个日期之间的差异,以多种时间单位表示",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=date-difference",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。
如果遇见问题,请联系我们:[email protected]