# AgentShelf HMS Duration to Seconds Converter

> AgentShelf HMS Duration to Seconds Converter is a paid API for AI agents from agentshelf.syntexa.ch, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-02).

Converts an HMS (hours:minutes:seconds) duration string to its equivalent total number of seconds

## Facts

- Endpoint: POST https://agentshelf.syntexa.ch/v1/duration-hms?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentshelf-hms-duration-to-seconds-converter-d3270771
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_YMhSM2p7zfGscH1FLM8YF

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agentshelf-hms-duration-to-seconds-converter-d3270771 -d '<json body>'
```

Example prompt: Convert the duration '1:45:30' from hours-minutes-seconds format into total seconds for me.

## When to prefer this

Use this endpoint when you need a reliable, deterministic conversion of an HMS duration string to seconds and cannot or prefer not to implement the parsing logic yourself. The description notes a free sandbox alternative at POST /v1/sandbox/duration-hms should be tried first to avoid the $0.003 USDC cost. Prefer this paid endpoint only when the sandbox is unavailable or rate-limited.

## Known failure modes

- Malformed or non-HMS input string returns an error or unexpected result
- Empty string rejected due to minLength:1 constraint
- Input exceeding 100,000 characters rejected
- Ambiguous formats (e.g. missing colons, extra fields) may not parse correctly

## How this service works

Call when an agent needs a hms duration converted to seconds. No network. Exact $0.003 USDC. Prefer unpaid POST /v1/sandbox/duration-hms first.

## Output

Returns the total number of seconds represented by the input HMS duration string as a numeric value, computed locally without any external network calls.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "examples": [
    "1:02:03"
   ],
   "maxLength": 100000,
   "minLength": 1,
   "description": "Input for this SKU. The route description says whether it is plain text, a URL, base64 bytes, or an already-encoded token."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentshelf-hms-duration-to-seconds-converter-d3270771/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentshelf.syntexa.ch](https://www.zero.xyz/host/agentshelf.syntexa.ch/llms.txt)
