duration

FEEL built-in function · Conversion functions

duration(from)

Creates a days-and-time or years-and-months duration from an ISO 8601 string.

Parameters

ParameterTypeDescription
fromstringISO 8601 duration, e.g. P3D, PT2H30M or P1Y6M

Examples

duration("P3DT4H")
P3DT4H Try it →
duration("P1Y6M")
date("2026-07-01") + duration("P3D")
2026-07-04 Try it →

Related functions

years and months duration · date and time

Defined by the OMG DMN 1.6 specification, chapter 10.3.4 (built-in functions).