返回 Skill 列表
extension
分类: 开发与工程无需 API Key

datetime-info

以多种格式显示当前日期和时间。当您需要时间戳、星期几或格式化的日期时使用。

person作者: jakexiaohubgithub

Datetime Info

Displays current date and time in various formats.

Usage

python ~/.copilot/skills/datetime-info/datetime_info.py [options]

Options

| Option | Description | Default | |--------|-------------|---------| | --format | Output format: iso, timestamp, human, all | all | | --timezone | Timezone (e.g., UTC, America/New_York) | local |

Output

JSON with:

  • iso: ISO 8601 format (2024-01-15T10:30:00)
  • timestamp: Unix timestamp
  • human: Human readable (Monday, January 15, 2024)
  • day_of_week: Day name
  • time: Current time HH:MM:SS

Examples

Get All Formats

python ~/.copilot/skills/datetime-info/datetime_info.py

ISO Format Only

python ~/.copilot/skills/datetime-info/datetime_info.py --format iso