FEEL

time

FEEL built-in function · FEEL date and time functions

time(from) or time(hour, minute, second, offset?)

Creates a time from an ISO 8601 string, from components, or by extracting the time of a date and time value.

Parameters

ParameterTypeDescription
fromstring or date and timeISO 8601 time string, or a date and time to take the time from
hour, minute, second, offsetnumbers / durationtime components with optional timezone offset (alternative form)

Examples

time("14:30:00")
14:30:00 Try it ↑
time(14, 30, 0, duration("PT1H"))
14:30:00+01:00 Try it ↑

Edge cases and null handling

time("14:30:00") + duration("PT10H")
00:30:00 Try it ↑

Time arithmetic wraps around midnight.

time("14:30:00") - time("08:00:00")
PT6H30M Try it ↑
time("25:00:00")

Related functions

date · date and time

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