- What's ISO 8601 duration format?
- P[n]Y[n]M[n]W[n]DT[n]H[n]M[n]S. Example: P3Y6M4DT12H30M5S = 3 years, 6 months, 4 days, 12 hours, 30 min, 5 seconds.
- Who uses this format?
- XML Schema, JSON APIs, GraphQL schemas, Kubernetes TTL fields. Wherever duration needs to be machine-parseable.
- Can I go duration → ISO?
- Toggle — enter 'human' duration fields, get ISO string. Useful when writing API contracts or validators.
- What about fractional seconds?
- P0DT0H0M0.5S is 500ms. Parsers vary on support; the tool emits the form your consumer specifies.