ISO 期間パーサー
ISO 8601期間文字列(P1Y2M3D)を読みやすい形式に解析します。
ISO Duration Parserについて
The ISO Duration Parser interprets ISO 8601 duration strings — the standard format used in date/time APIs, calendar protocols, and video metadata — by breaking them into their constituent components: years, months, weeks, days, hours, minutes, and seconds. ISO 8601 durations use the format P[n]Y[n]M[n]DT[n]H[n]M[n]S where P is the designator and T separates date and time components; for example, P1Y6MT2H30M represents 1 year, 6 months, 2 hours, and 30 minutes. While machine-readable, these strings are opaque to human inspection without parsing, making this tool essential for anyone working with iCalendar, YouTube API, OpenAPI, or FHIR data.
使い方
Enter an ISO 8601 duration string in the input field — common examples include PT30S (30 seconds), PT1H30M (1 hour 30 minutes), P2Y6M (2 years 6 months), and P1DT12H (1 day 12 hours). The tool parses all seven duration components, displays each labeled value, calculates the total duration in seconds and milliseconds for programmatic use, and shows a human-readable plain-English summary like '1 year, 6 months, 2 hours, 30 minutes'.
一般的な使用例
- Frontend developers parsing video duration values returned by the YouTube Data API v3 as ISO 8601 strings (e.g., PT1H23M45S) to display human-readable video length labels in media players
- Calendar application developers debugging iCalendar DURATION property values in VEVENT and VTODO components to verify that recurring event intervals and reminder lead times are correct
- API developers inspecting and debugging ISO 8601 duration fields in OpenAPI specifications, FHIR timing resources, and GraphQL schema type definitions where duration is the canonical representation
- DevOps engineers reading timeout, TTL, and interval values in Kubernetes CRDs, Helm chart values, or Prometheus alerting rule duration expressions that use ISO 8601 duration notation
- QA engineers generating edge-case ISO 8601 duration strings to test duration parsing and validation logic in date/time processing libraries for correctness and error handling