Twinkle HubTwinkle Hub
Sign in

📌 2026-08-17 added: ⚖️ Taiwan statute time machine — historical article text · revision history · full-text search · citation graph (935 datasets · 35,454+ rows)

View full changelog →

Humanize duration

tw_duration_humanize

GenericMIT

秒數 → 人類可讀(中文/英文)。例: 7325 → "2 小時 2 分鐘 5 秒" / "2h 2m 5s"。

Input schema

{
  "properties": {
    "seconds": {
      "title": "Seconds",
      "type": "number"
    },
    "language": {
      "default": "zh-tw",
      "enum": [
        "zh-tw",
        "en"
      ],
      "title": "Language",
      "type": "string"
    }
  },
  "required": [
    "seconds"
  ],
  "title": "duration_humanizeArguments",
  "type": "object"
}

How to call

Once your Twinkle Hub MCP client is configured, your agent will see tw_duration_humanize. Just ask it to call — example:

# Ask Claude / any MCP client:
請用 tw_duration_humanize 處理 "…"。

# It will call:
tw_duration_humanize(input="…")

Haven't set up a client yet?

Claude Desktop in 3 minutes — download the .mcpb and double-click, or see docs for other clients.

See user docs