time_tool
Retrieve current time in multiple formats (ISO, UNIX, RFC3339, locale) with configurable time zones and output formats for local operations.
Instructions
时间工具:获取当前时间,支持多种格式输出(ISO、UNIX、RFC3339、本地格式)。
示例:获取 ISO 格式 { "format": "iso", "output_format": "json" } 示例:获取指定时区 { "format": "locale", "time_zone": "Asia/Shanghai", "output_format": "text" }
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| format | No | 时间格式:iso(ISO 8601)、unix(UNIX时间戳秒)、unix_ms(毫秒)、rfc3339(RFC 3339)、locale(本地格式) | |
| include_milliseconds | No | 是否包含毫秒 | |
| time_zone | No | IANA时区名称,如 "Asia/Shanghai" | |
| output_format | No | 输出格式:text(纯文本)、json(结构化JSON)、both(两者兼有) |