360 Secure SkillHub
360 安全技能中心

Time Checker

核心功能是借助Python脚本从time.is获取全球任意地点的精准当前时间、日期及时区数据。典型使用场景包括查询某地当前时间、跨时区会议排期的时间验证。输入为地点名称(建议用城市名提升准确率),输出为对应地点的精准时间信息。使用前需确保环境安装requests和beautifulsoup4库,若地点未找到可核查拼写或换邻近大城市,还可结合指定 persona 温暖呈现结果。

1999azzar
1999azzar
热度 89.56
最近更新 2026-05-17 11:56:12
分类:生活依赖:代码执行应用场景:日程安排

安装技能

复制下面的话术发给你的 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.