parse_time
Parse fuzzy Chinese time expressions like '昨天', '下午3点', or '中秋节' into standard datetime formats. Handles relative dates, ranges, time of day, and holidays.
Instructions
解析模糊时间表达式为标准日期时间格式。
Parse fuzzy Chinese time expressions to standard datetime format.
Supported expressions:
Relative time: 昨天, 今天, 明天, 三天前, 两周后
Time ranges: 昨天到今天, 上周一到周五
Time of day: 上午9点, 下午3点30分
Holidays: 国庆节期间, 春节, 中秋节 (including lunar calendar)
Specific dates: 2024年1月1日, 1月15号
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timezone | No | Timezone for parsing (default: Asia/Shanghai) Supports standard timezone names like "UTC", "America/New_York" | Asia/Shanghai |
| expression | Yes | Fuzzy time expression in Chinese (e.g., "昨天", "三周前", "国庆节期间", "上午9点") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||