Home / Servers / Calculators / time_duration

Time duration

An MCP tool from the Calculators server, hosted on mcp.hjlabs.in.

Convert between a duration in seconds (or ms, minutes, hours, days) and a human form like "2d 3h 4m 5s", or add up a list of durations ("1h30m", "45m", "2:15:00").

Name on the gateway: math__time_duration · read-only.

Parameters

NameTypeDescription
value requiredstringA number of seconds, "1h30m"-style text, "hh:mm:ss", or several separated by commas to add up.
unitseconds | milliseconds | minutes | hours | daysUnit of a bare number. Default "seconds".

How to call it

Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:

call_tool arguments
{
  "name": "math__time_duration",
  "arguments": {
    "value": "…"
  }
}

Or connect the Calculators server directly, which lists 28 tools including this one:

Run in your terminal
claude mcp add --transport http hj-math https://mcp.hjlabs.in/mcp/math \
  --header "Authorization: Bearer YOUR_API_KEY"

Try asking

Use the time duration tool with value set to ….

More from Calculators