<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Convert Elapsed Time in ArcGIS Dashboards in ArcGIS Dashboards Questions</title>
    <link>https://community.esri.com/t5/arcgis-dashboards-questions/convert-elapsed-time-in-arcgis-dashboards/m-p/1088919#M4955</link>
    <description>&lt;P&gt;Thanks Josh, that was exactly what I was looking for!&amp;nbsp; I appreciate your time and effort on this!&lt;/P&gt;</description>
    <pubDate>Fri, 13 Aug 2021 15:39:21 GMT</pubDate>
    <dc:creator>shildebrand</dc:creator>
    <dc:date>2021-08-13T15:39:21Z</dc:date>
    <item>
      <title>Convert Elapsed Time in ArcGIS Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/convert-elapsed-time-in-arcgis-dashboards/m-p/1086725#M4918</link>
      <description>&lt;P&gt;Does anyone know if there is a way to convert a known length of time (in this case the number of minutes estimated for a sewer overflow) to hours, minutes, and seconds?&amp;nbsp; Currently I am displaying the number of minutes (stored in a double field in a feature service) as an indicator in my dashboard.&amp;nbsp; Any suggestions would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 18:38:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/convert-elapsed-time-in-arcgis-dashboards/m-p/1086725#M4918</guid>
      <dc:creator>shildebrand</dc:creator>
      <dc:date>2021-08-06T18:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Elapsed Time in ArcGIS Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/convert-elapsed-time-in-arcgis-dashboards/m-p/1086739#M4919</link>
      <description>&lt;P&gt;You can use the built in value conversion in an indicator.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1628276021557.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20390i2700E488AAA9DAC1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1628276021557.png" alt="jcarlson_0-1628276021557.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If that 50 represented minutes, converting it to hours would be as simple as applying a factor of 1/60, or .01666, and the result is now in hours.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_1-1628276099875.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20391i36F311B00CCA1BF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_1-1628276099875.png" alt="jcarlson_1-1628276099875.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Aug 2021 18:54:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/convert-elapsed-time-in-arcgis-dashboards/m-p/1086739#M4919</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-08-06T18:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Elapsed Time in ArcGIS Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/convert-elapsed-time-in-arcgis-dashboards/m-p/1088681#M4950</link>
      <description>&lt;P&gt;Thanks Josh, that's better than showing minutes.&amp;nbsp; Any thoughts on how to represent the hours and seconds?&amp;nbsp; I'm thinking there is probably some kind of arcade expression that could be written.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2021 22:08:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/convert-elapsed-time-in-arcgis-dashboards/m-p/1088681#M4950</guid>
      <dc:creator>shildebrand</dc:creator>
      <dc:date>2021-08-12T22:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Elapsed Time in ArcGIS Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/convert-elapsed-time-in-arcgis-dashboards/m-p/1088846#M4951</link>
      <description>&lt;P&gt;Ah, you mean like "2 hours, 26 minutes, 15 seconds". That would have to be an arcade expression. For an example, I'll use 137.9 minutes. This is using a feature-based indicator with Arcade enabled.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var dur = $datapoint['duration-field'] // 137.9 used for test
var s = (dur * 60) % 60
var m = Floor(dur) % 60
var h = (Floor(dur) - m) / 60

return {
    topText: `${dur} minutes`,
    topTextMaxSize: 'medium',
    middleText: `${h} hours, ${m} minutes, ${s} seconds`,
    middleTextMaxSize: 'large'
  }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which results in:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jcarlson_0-1628860515854.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/20819iDBC122548DE6B29B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jcarlson_0-1628860515854.png" alt="jcarlson_0-1628860515854.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 13:15:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/convert-elapsed-time-in-arcgis-dashboards/m-p/1088846#M4951</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-08-13T13:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Elapsed Time in ArcGIS Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/convert-elapsed-time-in-arcgis-dashboards/m-p/1088919#M4955</link>
      <description>&lt;P&gt;Thanks Josh, that was exactly what I was looking for!&amp;nbsp; I appreciate your time and effort on this!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Aug 2021 15:39:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/convert-elapsed-time-in-arcgis-dashboards/m-p/1088919#M4955</guid>
      <dc:creator>shildebrand</dc:creator>
      <dc:date>2021-08-13T15:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Elapsed Time in ArcGIS Dashboards</title>
      <link>https://community.esri.com/t5/arcgis-dashboards-questions/convert-elapsed-time-in-arcgis-dashboards/m-p/1554337#M10442</link>
      <description>&lt;P&gt;Is there a way to do this on a dashboard with a conditional indicator (based on a calculation?) I have indicators that show the 90th percentile time, and will be green or red depending on if it is over the benchmark or not. The data is stored in a double field as minutes, but ultimately we'd love to display the times on the dashboard in the hh:mm:ss format. Not sure if this is possible?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Oct 2024 15:53:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-dashboards-questions/convert-elapsed-time-in-arcgis-dashboards/m-p/1554337#M10442</guid>
      <dc:creator>Philip_Ohlinger</dc:creator>
      <dc:date>2024-10-31T15:53:58Z</dc:date>
    </item>
  </channel>
</rss>

