AiondaAionda

Formula reference · Dates and times

FORMATDURATION

Format an elapsed duration as hours:minutes:seconds.

English · 23 November 2026

Review edition — editorial review is not yet complete.

Back to the function catalog

What it does

Format an elapsed duration as hours:minutes:seconds.

Syntax

FORMATDURATION(seconds [, compatibility_option])

Square brackets mark optional arguments; omit the brackets. Separate arguments with commas, quote text and use a point for decimals.

Arguments, in order

ArgumentMeaning
secondsDuration in seconds. The absolute integer part is used.
compatibility_optionOptional second argument; accepted but ignored.

Returns: Text.

Worked examples

Example 1

Formula

FORMATDURATION(3661)

Result

"1:01:01"

Example 2

Formula

FORMATDURATION(-61, true)

Result

"0:01:01"

Quotes in the result indicate text; \n indicates a newline. Date results use ISO notation. The application may display dates and numbers differently according to the selected field type and interface language.

Behaviour and limits

Hours can exceed 23. This does not format a calendar timestamp. Negative durations lose their sign.

Use it with your fields

Replace example values with the relevant field API names when needed. A record formula uses names such as amount; a flow expression uses its context, such as $Datensatz.amount. Use your actual API names and a compatible return type. See expression basics and flows.