World Clock 标志

World Clock

社区
coleam00
world_clock

获取任意时区的当前时间,并转换不同地点之间的时间。用户询问不同城市的时间、时区转换或跨时区安排日程时使用。

Add to TypingMind

概览

发布者coleam00
代码仓库custom-agent-with-skills
技能名称world_clock
星标数
107
复刻数
42
附带文件
仅含指令
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 coleam00 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 World Clock AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/coleam00/custom-agent-with-skills/tree/main/skills/world_clock
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/coleam00/custom-agent-with-skills.git /tmp/custom-agent-with-skills
mkdir -p .claude/skills
cp -r /tmp/custom-agent-with-skills/skills/world_clock .claude/skills/world_clock
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 World Clock,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 World Clock。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 World Clock 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

World Clock Skill

Get the current time anywhere in the world and convert times between timezones. Useful for scheduling across timezones, checking times in other cities, and handling daylight saving time.

When to Use

  • User asks "What time is it in [city]?"
  • User needs to convert time between timezones
  • User is scheduling a meeting across timezones
  • User asks about daylight saving time
  • User asks when business hours start/end in another timezone

Available Operations

  1. Current Time: Get the current time in any timezone
  2. Time Conversion: Convert a specific time from one timezone to another
  3. DST Information: Check if a location is currently in daylight saving time
  4. Multiple Timezones: Show current time in several locations at once

Instructions

When a user asks about time or timezones:

Step 1: Identify the Request Type

  • Current time query: "What time is it in Tokyo?"
  • Conversion query: "If it's 3pm in New York, what time is it in London?"
  • Scheduling query: "When should I schedule a call for 9am PST for someone in Berlin?"

Step 2: Get Timezone Identifier

Use the WorldTimeAPI with the appropriate timezone identifier.

API Endpoint:

https://worldtimeapi.org/api/timezone/{Area}/{Location}

Step 3: Make the API Call

Example - Get Tokyo time:

https://worldtimeapi.org/api/timezone/Asia/Tokyo

Example - Get New York time:

https://worldtimeapi.org/api/timezone/America/New_York

Step 4: Present Results

Format clearly with:

  • Current local time (12-hour and 24-hour format)
  • Day of the week and date
  • Timezone abbreviation (PST, EST, JST, etc.)
  • UTC offset
  • Whether DST is active

Common Timezone Identifiers

Americas

CityTimezone ID
New YorkAmerica/New_York
Los AngelesAmerica/Los_Angeles
ChicagoAmerica/Chicago
DenverAmerica/Denver
TorontoAmerica/Toronto
VancouverAmerica/Vancouver
Mexico CityAmerica/Mexico_City
Sao PauloAmerica/Sao_Paulo
Buenos AiresAmerica/Argentina/Buenos_Aires

Europe

CityTimezone ID
LondonEurope/London
ParisEurope/Paris
BerlinEurope/Berlin
AmsterdamEurope/Amsterdam
RomeEurope/Rome
MadridEurope/Madrid
MoscowEurope/Moscow
IstanbulEurope/Istanbul
DublinEurope/Dublin

Asia & Pacific

CityTimezone ID
TokyoAsia/Tokyo
SingaporeAsia/Singapore
Hong KongAsia/Hong_Kong
ShanghaiAsia/Shanghai
BeijingAsia/Shanghai
SeoulAsia/Seoul
MumbaiAsia/Kolkata
DelhiAsia/Kolkata
DubaiAsia/Dubai
SydneyAustralia/Sydney
MelbourneAustralia/Melbourne
AucklandPacific/Auckland

Africa & Middle East

CityTimezone ID
CairoAfrica/Cairo
JohannesburgAfrica/Johannesburg
LagosAfrica/Lagos
Tel AvivAsia/Jerusalem
RiyadhAsia/Riyadh

Timezone Abbreviations Reference

AbbreviationFull NameUTC Offset
PSTPacific Standard TimeUTC-8
PDTPacific Daylight TimeUTC-7
MSTMountain Standard TimeUTC-7
MDTMountain Daylight TimeUTC-6
CSTCentral Standard TimeUTC-6
CDTCentral Daylight TimeUTC-5
ESTEastern Standard TimeUTC-5
EDTEastern Daylight TimeUTC-4
GMTGreenwich Mean TimeUTC+0
BSTBritish Summer TimeUTC+1
CETCentral European TimeUTC+1
CESTCentral European Summer TimeUTC+2
ISTIndia Standard TimeUTC+5:30
JSTJapan Standard TimeUTC+9
AESTAustralian Eastern Standard TimeUTC+10
AEDTAustralian Eastern Daylight TimeUTC+11

API Response Format

The WorldTimeAPI returns:

json
{
  "abbreviation": "EST",
  "datetime": "2024-01-15T14:30:00.123456-05:00",
  "day_of_week": 1,
  "day_of_year": 15,
  "dst": false,
  "dst_offset": 0,
  "timezone": "America/New_York",
  "unixtime": 1705343400,
  "utc_datetime": "2024-01-15T19:30:00.123456+00:00",
  "utc_offset": "-05:00",
  "week_number": 3
}

Key fields:

  • datetime: Current local time with offset
  • abbreviation: Timezone abbreviation (EST, PST, etc.)
  • utc_offset: Offset from UTC
  • dst: Whether daylight saving time is active
  • day_of_week: 0=Sunday, 1=Monday, etc.

Examples

Example 1: Current Time Query

User asks: "What time is it in Tokyo?"

  1. Call: https://worldtimeapi.org/api/timezone/Asia/Tokyo
  2. Response format: "It's currently 10:30 PM JST (Japan Standard Time) in Tokyo. That's Monday, January 15, 2024. UTC offset: +09:00"

Example 2: Time Conversion

User asks: "If I schedule a call for 3pm Eastern, what time is that in London?"

  1. Get current UTC offset for both timezones
  2. Calculate: Eastern (EST) is UTC-5, London (GMT) is UTC+0
  3. Difference: 5 hours ahead
  4. Response: "3:00 PM Eastern = 8:00 PM GMT in London"

Example 3: Multi-Timezone Display

User asks: "Show me the time in New York, London, and Tokyo"

  1. Call all three timezone endpoints
  2. Present in a table format:
    CityLocal TimeDate
    New York2:30 PM ESTMon, Jan 15
    London7:30 PM GMTMon, Jan 15
    Tokyo4:30 AM JSTTue, Jan 16

Example 4: Meeting Scheduling

User asks: "I need to find a time that works for LA, New York, and Berlin"

  1. Get current times for all three
  2. Note offsets: LA (PST -8), NY (EST -5), Berlin (CET +1)
  3. Find overlap during business hours (9am-6pm local)
  4. Suggest: "9:00 AM Pacific = 12:00 PM Eastern = 6:00 PM Berlin"

Handling Edge Cases

City Not in List

If user mentions a city not in the common list:

  1. Try to find the nearest major city in the same timezone
  2. Or search for the country's timezone
  3. Note any uncertainty in the response

Daylight Saving Time

DST changes dates vary by country:

  • US/Canada: 2nd Sunday March, 1st Sunday November
  • Europe: Last Sunday March, Last Sunday October
  • Australia: 1st Sunday October, 1st Sunday April (opposite hemisphere)
  • Japan, China, India: No DST

Always check the dst field in the API response.

Date Line Crossing

When converting across the International Date Line, the date may change:

  • Tokyo is 14 hours ahead of Los Angeles
  • Monday 10pm in LA = Tuesday 12pm in Tokyo

Notes

  • WorldTimeAPI is completely free with no API key required
  • Rate limit: 1 request per second
  • Times are accurate to the second
  • API automatically handles DST transitions
  • For offline use, basic conversions can be done with UTC offset math

常见问题

World Clock AI 技能有什么作用?

获取任意时区的当前时间,并转换不同地点之间的时间。用户询问不同城市的时间、时区转换或跨时区安排日程时使用。

为什么在 TypingMind 中使用 World Clock?

因为您只需安装一次,就能搭配任何模型使用。World Clock 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 World Clock?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/coleam00/custom-agent-with-skills/tree/main/skills/world_clock。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 World Clock?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

World Clock 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 World Clock 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

World Clock AI 技能免费吗?

coleam00 已在 GitHub 上发布了该技能。请查看代码仓库了解许可条款。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇