Epoch Calculator

com.epochcalc由 epochcalc.com 发布官方发布者v1.0.0更新于 Oct 24, 2026

Unix timestamps, DST-aware time zone conversion, durations, cron schedules, and holiday countdowns

已验证Streamable HTTP可网页运行效率与工作流开发者工具

概览

AI 生成的概览

远程 MCP 服务器,用于时间与日期计算:Unix 时间戳、考虑夏令时的时区转换、时长、cron 计划与节日倒计时。

可以做什么
  • 获取当前时间,输出 epoch、ISO 8601 及指定 IANA 时区的本地时间
  • 把 Unix 时间戳转换为可读日期,并把日期字符串解析回时间戳
  • 在 IANA 时区之间转换本地时间,给出偏移量并正确处理夏令时
  • 计算两个日期之间的时长(含工作日),并对时间戳按日历年月日等做加减
  • 解释 cron 表达式并列出接下来的运行时间
  • 对节日或指定日期倒计时,或列出已知事件
适用场景
当助手需要精确且正确处理夏令时的日期运算而非估算时适用:转换日志或 API 中的时间戳、跨时区排期、确认 cron 任务下次运行时间,或计算距截止日期、节日的天数。
运行要求
位于 epochcalc.com 的远程 streamable HTTP 端点;未声明软件包、环境变量或请求头,也未声明身份验证。时区以 IANA 名称给出。
安装前请注意
均为只读计算工具,未描述写入、凭据或付费行为。结果依赖服务器的 IANA 时区数据库,关键排期决策请自行复核。

AI 概览如何生成和校验

安装

在 SourceWeft 中

  1. 打开 控制台中的 Epoch Calculator,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Web executable,通过 Streamable HTTP。 远程服务在工作区中配置后即可从网页运行时运行。

交给智能体安装

把这段提示词粘贴到 Claude Code、Codex、Cursor 等智能体,或 SourceWeft 对话中。智能体会读取该服务器的安装指南,先向你展示发布者、端点和登录方式,经你同意后再把它添加到你的客户端。密钥不会写进任何命令。

阅读 https://sourceweft.com/mcp/com.epochcalc%2Fepochcalc/install.md,并按其中说明把这个 MCP 服务器接入我的客户端。修改任何配置之前,先告诉我它的发布者、端点和登录方式,等我确认。不要把 API 密钥写进命令或我会提交的文件;问我密钥应从哪里获取。

查看智能体所依据的安装指南

其他 MCP 客户端

把它添加到你客户端的 mcpServers 配置中。

{
  "mcpServers": {
    "epoch-calculator": {
      "type": "http",
      "url": "https://epochcalc.com/mcp"
    }
  }
}

工具

8

time_now

Current time

The current time: Unix epoch in seconds and milliseconds, ISO 8601, and the local wall-clock time in a given IANA time zone with its current UTC offset and DST status. Use this before any relative date reasoning.

输入参数timezone

convert_timestamp

Convert Unix timestamp

Convert a Unix timestamp (seconds or milliseconds; auto-detected unless unit is given) to a human-readable date in a time zone, with ISO 8601, RFC 2822, UTC offset, DST flag, weekday, and a relative phrase like "3 days ago".

输入参数unittimezonetimestamp必填

parse_datetime

Parse date/time

Parse a date/time string (ISO 8601, RFC 2822, HTTP date, SQL "YYYY-MM-DD HH:mm:ss", or a Unix timestamp) into a Unix timestamp and a normalized description. Strings without an offset are interpreted in the given time zone.

输入参数input必填timezone

convert_timezone

Convert between time zones

Convert a wall-clock date/time from one IANA time zone to another, correctly across daylight-saving transitions. Returns both sides with offsets, the hour difference at that instant, and whether either zone is on DST.

输入参数datetime必填to_timezone必填from_timezone必填

date_duration

Duration between dates

The exact duration between two dates or date-times: calendar years/months/days, plus total days, hours, minutes and seconds, and the number of weekdays (Mon-Fri). Handles leap years and DST via the IANA database.

输入参数end必填start必填timezoneinclude_end

epoch_math

Epoch arithmetic

Add to or subtract from a Unix timestamp in calendar-aware units (years, months, weeks, days, hours, minutes, seconds) in a time zone, e.g. "now + 30 days" or "1748736543 - 3 months". Returns the resulting timestamp in every format.

输入参数addsubtracttimezonetimestamp

cron_next_runs

Next cron runs

Explain a 5- or 6-field cron expression in plain English and list its next run times in a time zone (as ISO 8601 and Unix timestamps). Use to answer "when does this cron job run next?" or to validate an expression.

输入参数fromcounttimezoneexpression必填

days_until

Days until an event

Countdown to a holiday or to a date: days, hours and minutes remaining, and the next occurrence date. Pass an event slug (e.g. "christmas", "thanksgiving", "easter", "super-bowl") or a date (YYYY-MM-DD). Call with no arguments to list the known events.

输入参数dateeventtimezone

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 72%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通必需25 分
  • 已声明认证方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 图标10 分

    请在注册中心条目中发布图标。

  • 文档15 分

    请声明包含 README 的 GitHub 仓库,或在 OAuth 受保护资源元数据中提供 resource_documentation。

  • 许可证不适用

    托管服务按其提供方的条款使用,因此这里不要求许可证。此检查项不计入百分比。

这个评分如何计算