360 Secure SkillHub
360 安全技能中心

Time Convert

通过 HTTP 接口调用在线时间服务,支持查询指定时区的当前时间、在两个时区之间转换时间、按秒到年为单位加减日期,以及 ISO 8601 与 Unix 纪元时间互转;返回包含时区、星期和夏令时标记的 JSON。使用时需联网,免费额度为每天 10 次。

cutthemustard
cutthemustard
热度 81.20
最近更新 2026-05-11 17:28:31
分类:效率依赖:第三方 API / 代码执行应用场景:工作流 / 数据处理

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add time-convert
Metadata
name
time-convert
description
Timezone conversion, current time, date arithmetic, and epoch conversion.
version
1.0.0
metadata
{"openclaw":{"emoji":"🕐","homepage":"https://time.agentutil.net","always":false}}

time-convert

Current time in any timezone, convert between timezones, date math (add/subtract), and ISO 8601 to unix epoch conversion.

Endpoints

Current Time

curl -X POST https://time.agentutil.net/v1/now \
  -H "Content-Type: application/json" \
  -d '{"timezone": "Pacific/Auckland"}'

Timezone Conversion

curl -X POST https://time.agentutil.net/v1/convert \
  -H "Content-Type: application/json" \
  -d '{"time": "2026-03-04T09:00:00", "from_timezone": "America/New_York", "to_timezone": "Pacific/Auckland"}'

Date Math

curl -X POST https://time.agentutil.net/v1/math \
  -H "Content-Type: application/json" \
  -d '{"date": "2026-03-04T00:00:00Z", "operation": "add", "value": 7, "unit": "days"}'

Units: seconds, minutes, hours, days, weeks, months, years.

Epoch Conversion

curl -X POST https://time.agentutil.net/v1/epoch \
  -H "Content-Type: application/json" \
  -d '{"value": 1741046400, "direction": "from_epoch"}'

Response Format

{
  "iso": "2026-03-04T14:30:00.000+13:00",
  "unix": 1741050600,
  "timezone": "Pacific/Auckland",
  "day_of_week": "Wednesday",
  "is_dst": true,
  "request_id": "abc-123",
  "service": "https://time.agentutil.net"
}

Pricing

  • Free tier: 10 queries/day, no authentication required
  • Paid tier: $0.001/query via x402 protocol (USDC on Base)

Privacy

No authentication required for free tier. No personal data collected. Rate limiting uses IP hashing only.