Skip to main content

Duration.ToText

Returns the text of the form "d.h:m:s".

Syntax

Duration.ToText(
duration as duration,
optional format as text
) as text

Remarks

Returns a textual representation in the form "day.hour:mins:sec" of the given duration value, duration.

  • duration: A duration from which the textual representation is calculated.
  • format: [Optional] Deprecated, will throw an error if not null

Examples

Example #1

Convert <code>#duration(2, 5, 55, 20)</code> into a text value.

Duration.ToText(#duration(2, 5, 55, 20))

Result:

"2.05:55:20"

Category

Duration