Share via


Duration.ToText

Syntax

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

About

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.

Example 1

Convert #duration(2, 5, 55, 20) into a text value.

Usage

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

Output

"2.05:55:20"