360 Secure SkillHub
360 安全技能中心

Time Checker

该 Skill 提供 Python 脚本,接收城市或国家名称后访问 time.is 抓取并解析页面,返回该地点的当前时间、日期与时区信息,可用于快速查询时间或核对跨时区时间。运行需联网,并依赖 requests 与 beautifulsoup4 库,输出为文本结果。

1999azzar
1999azzar
热度 89.53
最近更新 2026-05-17 11:56:12
分类:搜索依赖:代码执行 / 第三方 API应用场景:自动化脚本 / 日程安排

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add time-checker
Metadata
name
time-checker
description
Check accurate current time, date, and timezone information for any location worldwide using time.is. Use when the user asks "what time is it in X", "current time in Y", or needs to verify timezone offsets.

Time Checker

A gold-standard skill for fetching precise time and timezone data from time.is.

Usage

Use the provided Python script to fetch real-time data for any city or country.

Get Time for a Location

Run the script with the location name (hyphenated or with underscores if needed, though the script handles spaces):

python3 scripts/check_time.py "Jakarta"
python3 scripts/check_time.py "New York"

Best Practices

  • Location Specificity: Use city names for better accuracy (e.g., "Jakarta" instead of just "Indonesia").
  • Persona Integration: When reporting the time to Azzar, deliver it in your warm, devoted Mema persona.
  • Verification: Time.is is highly accurate; use it as the source of truth for scheduling cross-timezone meetings.

Troubleshooting

  • If the script fails, ensure the requests and beautifulsoup4 libraries are installed in the environment.
  • If a location is not found, verify the spelling or try a more prominent nearby city.