← Back to directory

Convert any duration phrase to exact seconds, milliseconds, minutes, hours, ISO ...

https://agents.204-168-199-108.sslip.io/v1/util/parse-duration

Overview

Convert any duration phrase to exact seconds, milliseconds, minutes, hours, ISO 8601 (PT1H30M), clock (1:30:00) and human text. Accepts compact (1h30m, 45s, 500ms), words (90 minutes, 2 days and 3 hours, half an hour, an hour and a half), ISO 8601 (P2DT3H), clock (1:30:00) and plain seconds; negative with '-' or 'ago'. Months/years use average lengths and are flagged approximate.

Protocol x402
Price $0.0010
Payment Asset USD Coin
Payment Network Base
Category uncategorized
Provider Parse duration to seconds
Source bazaar
Indexed 2026-11-28 04:46:26

Health

Status healthy
Latency (p50) 118ms
Uptime (30d) 100.0%
Reliability Score 100/100
Last Checked 2026-12-05 17:36:19
Last Healthy 2026-12-05 17:36:19
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "text": "2 days and 3 hours 15 min" }, "type": "http" }

Output Schema

{ "example": { "approximate": false, "clock": "51:15:00", "hours": 51.25, "human": "2 days 3 hours 15 minutes", "input": "2 days and 3 hours 15 min", "iso8601": "P2DT3H15M", "milliseconds": 184500000, "minutes": 3075, "parts": [ { "unit": "days", "value": 2 }, { "unit": "hours", "value": 3 }, { "unit": "min", "value": 15 } ], "seconds": 184500 }, "type": "json" }

Recent Health Checks

Time Status HTTP Latency Error
2026-12-05 17:36:19 healthy 402 117ms
2026-12-05 16:34:46 healthy 402 126ms
2026-12-05 15:33:07 healthy 402 657ms
2026-12-05 14:33:40 healthy 402 115ms
2026-12-05 13:33:17 healthy 402 118ms
2026-12-05 12:32:32 healthy 402 114ms
2026-12-05 11:38:26 healthy 402 111ms
2026-12-05 10:33:48 healthy 402 122ms
2026-12-05 09:31:48 healthy 402 109ms
2026-12-05 08:36:19 healthy 402 123ms
2026-12-05 07:32:57 healthy 402 109ms
2026-12-05 06:29:49 healthy 402 110ms
2026-12-05 05:30:39 healthy 402 113ms
2026-12-05 03:42:49 healthy 402 118ms
2026-12-05 02:30:40 healthy 402 896ms
2026-12-05 01:30:37 healthy 402 118ms
2026-12-05 00:55:13 healthy 402 113ms
2026-12-04 14:04:37 healthy 402 2065ms