Date Math Calculator

com.apished由 apished.com 發布官方發布者v1.0.0更新於 Oct 28, 2026

Date arithmetic: day differences, business days, age, leap years, day-of-week, add/subtract.

發布方自己的服務:APIShed

已驗證Streamable HTTP可網頁執行效率與工作流開發者工具

概覽

AI 產生的概覽

遠端 MCP 伺服器,用於日曆日期運算:加減年月日、計算工作日、年齡、日期差、星期幾與閏年。

可以做什麼
  • 對日期加減年、月、日,月底依截斷規則處理
  • 依指定日期或目前日期計算整歲年齡
  • 計算兩個日期之間的工作日,可自訂工作日與假日
  • 查詢某日期是星期幾及其 ISO 星期編號
  • 計算兩個日期之間的整日差值,反向時為負數
  • 判斷某年是否為公曆閏年
適用情境
適合需要精確、可重現日曆計算的情境,例如截止日期與工作日統計、年齡或年資計算、日期差與星期查詢,避免模型自行估算出錯。
執行需求
需要連線到 apished.com 上的遠端 streamable HTTP 端點;未宣告任何套件、帳號、API 金鑰或環境變數。
安裝前請注意
結果依伺服器自身的慣例,例如月底截斷、非閏年時 2 月 29 日生日以 3 月 1 日計算,使用前請與自身業務規則核對。日期以純日曆日期處理,不涉及時區。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 Date Math Calculator,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Web executable,透過 Streamable HTTP。 遠端服務在工作區中設定後即可從網頁執行環境執行。

交給代理程式安裝

把這段提示詞貼上到 Claude Code、Codex、Cursor 等代理程式,或 SourceWeft 對話中。代理程式會讀取該伺服器的安裝指南,先向你展示發布者、端點和登入方式,經你同意後再把它新增到你的客戶端。金鑰不會寫進任何命令。

閱讀 https://sourceweft.com/mcp/com.apished%2Fdate-math-calculator/install.md,並按其中說明把這個 MCP 伺服器接入我的客戶端。修改任何設定之前,先告訴我它的發布者、端點和登入方式,等我確認。不要把 API 金鑰寫進命令或我會提交的檔案;問我金鑰應從哪裡取得。

檢視代理程式所依據的安裝指南

其他 MCP 客戶端

把它新增到你客戶端的 mcpServers 設定中。

{
  "mcpServers": {
    "date-math-calculator": {
      "type": "http",
      "url": "https://apished.com/mcp/v1/datemath"
    }
  }
}

工具

6

datemath_add

Adds years/months/days to date. years/months are applied together with end-of-month clamping — e.g. 2026-01-31 + 1 month = 2026-02-28, not an overflowed 2026-03-03. days is then applied as plain calendar-day arithmetic.

輸入參數date必填daysyearsmonths

datemath_age

Age in whole years as of asOf (optional, defaults to the current UTC date). A Feb-29 birthDate is treated as falling on March 1 in a non-leap asOf year.

輸入參數asOfbirthDate必填

datemath_businessdays

Counts days in [from, to] (inclusive on both ends) whose weekday is in weekdays (default mon-fri) and which aren't in holidays.

輸入參數to必填from必填holidaysweekdays

datemath_dayofweek

Day of the week for date: both the weekday name and its ISO 8601 weekday number (1=Monday..7=Sunday).

輸入參數date必填

datemath_diff

Day difference between two YYYY-MM-DD dates: to minus from, in whole days. Negative if to is before from.

輸入參數to必填from必填

datemath_leapyear

Checks whether year is a leap year in the Gregorian calendar.

輸入參數year必填

版本歷史

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

評分

已滿足適用檢查項的 83%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通必需25 分
  • 已宣告認證方式必需10 分
  • 已列出工具必需15 分
  • 描述必需15 分
  • 圖示10 分
  • 文件15 分

    請宣告包含 README 的 GitHub 儲存庫,或在 OAuth 受保護資源後設資料中提供 resource_documentation。

  • 授權條款不適用

    託管服務按其提供方的條款使用,因此這裡不要求授權條款。此檢查項不計入百分比。

其他 Apished 整合