ISO-8601 Duration Format

ISO-8601 standardizes how we represent durations in a compact, unambiguous way. The basic structure for durations is:

P[n]Y[n]M[n]DT[n]H[n]M[n]S

Breakdown:

Quick Examples:

This concise notation is widely used in various frameworks (like ShedLock) and systems to ensure clarity and consistency when specifying time durations.