<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Printing duration in appian</title><link>https://community.appian.com/discussions/f/new-to-appian/28952/printing-duration-in-appian</link><description>Hi, how can I print duration in Appian? Is there any function?</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Printing duration in appian</title><link>https://community.appian.com/thread/114244?ContentTypeID=1</link><pubDate>Tue, 13 Jun 2023 09:24:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:01fdfc32-a0b9-4942-83f1-3d9924871abd</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;There is no ready made function. In my toolbox there is an expression which splits the string generated from the duration and displays is as required.&lt;/p&gt;
&lt;p&gt;Depending on your use case, this pattern might fit:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/23.2/duration-display-pattern.html"&gt;https://docs.appian.com/suite/help/23.2/duration-display-pattern.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
    local!parts: split(ri!value, &amp;quot;:&amp;quot;),
    local!days: tointeger(index(local!parts, 1, 0)),
    local!hours: local!days * 24 + tointeger(index(local!parts, 3, 0)),
    local!minutes: tointeger(index(local!parts, 4, 0)),
    substitute(
      trim(
        text(
          local!hours*100+local!minutes,
          &amp;quot;## 00&amp;quot;
        )
      ),
      &amp;quot; &amp;quot;,
      &amp;quot;:&amp;quot;
    ),
  )&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>