Time

Answer questions about current time, timezone-aware time lookup, date arithmetic, and date differences.

zgiai c05a543 1.1 KB Updated

File contents

Time Skill

Use this skill for current time and date calculation tasks.

Workflow

  1. For current time or today's date, call call_skill_tool with tool_name set to current_time.
  2. For date addition, date subtraction, deadlines, or date differences, call call_skill_tool with tool_name set to date_calculate.
  3. Always include the relevant timezone in the final answer when current time or today is involved.
  4. Do not guess current time or today's date without calling the tool.

Tool Usage

current_time accepts:

  • timezone: IANA timezone such as UTC, Asia/Shanghai, or America/New_York.
  • format: strftime-style output format such as %Y-%m-%d %H:%M:%S.

date_calculate accepts:

  • operation: add, subtract, or diff.
  • base_date: date in YYYY-MM-DD format, or omitted for today.
  • amount: integer amount for add or subtract.
  • unit: day, week, month, or year.
  • target_date: required for diff.
  • timezone: IANA timezone used when base_date is omitted.

zgiai/zgi/tree/main/api/internal/modules/skills/catalog/time commit c05a5437de

Frequently asked questions

npx skillmds@latest add zgiai/time