get_current_time
Get current date and time with timezone support, returning formatted datetime, timezone info, and Unix timestamp. Use for time checks, timezone comparisons, logging timestamps, and scheduling tasks.
Instructions
GET CURRENT DATE AND TIME with timezone support. Returns formatted datetime, timezone info, and Unix timestamp. Use for getting current time, checking time in different timezones, timestamps for logging. Keywords: time, date, now, current time, timestamp, timezone, clock. / 获取当前日期和时间,支持时区。返回格式化的日期时间、时区信息和Unix时间戳。用于获取当前时间、检查不同时区的时间、日志时间戳。关键词:时间、日期、当前时间、时间戳、时区。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| timezone | No | IANA timezone name (optional). If empty or not provided, uses the system's local timezone. Common timezones: 'Asia/Shanghai' (China), 'America/New_York' (US East), 'Europe/London' (UK), 'UTC' (Universal), 'Asia/Tokyo' (Japan), 'America/Los_Angeles' (US West), 'Europe/Paris' (France). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | Yes | ||
| time | Yes | ||
| unix | Yes | ||
| is_dst | No | ||
| weekday | Yes | ||
| datetime | Yes | ||
| timezone | Yes | ||
| unix_milli | Yes | ||
| timezone_offset | Yes |