DRAFTThis page is not published. Only visible in development mode.
duration module

duration::format

Format a duration as a human-readable string.

Syntax

RQL

Parameters

NameTypeDescription
durationDurationThe duration to format.
format_stringUtf8The format string to use.

Return Value

Returns a Utf8 with the duration formatted according to the format string.

Examples

$ Format a duration
$ ctrl+enter to run

Related Functions