<?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 Calculate total time when start and end times field type is text in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-total-time-when-start-and-end-times/m-p/881879#M30799</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am playing with different ways to enter time and calculate total time. I am considering capturing time in a text format because I have noticed that the now() option can be buggy under certain circumstances (like if the survey crashes, the time refreshes to recovery time. Also, the species sighted time captured in a repeat section refreshes my route start time under some conditions). I am wondering if it is possible to calculate total time is the time is captured as text (military time). If so, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Oct 2017 19:42:30 GMT</pubDate>
    <dc:creator>BonnieWeller1</dc:creator>
    <dc:date>2017-10-13T19:42:30Z</dc:date>
    <item>
      <title>Calculate total time when start and end times field type is text</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-total-time-when-start-and-end-times/m-p/881879#M30799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am playing with different ways to enter time and calculate total time. I am considering capturing time in a text format because I have noticed that the now() option can be buggy under certain circumstances (like if the survey crashes, the time refreshes to recovery time. Also, the species sighted time captured in a repeat section refreshes my route start time under some conditions). I am wondering if it is possible to calculate total time is the time is captured as text (military time). If so, how?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 19:42:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-total-time-when-start-and-end-times/m-p/881879#M30799</guid>
      <dc:creator>BonnieWeller1</dc:creator>
      <dc:date>2017-10-13T19:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate total time when start and end times field type is text</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-total-time-when-start-and-end-times/m-p/881880#M30800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bonnie,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is pretty easy to do - you need to have a calculation&amp;nbsp;that extracts the hour part and minute part using substr(), converts the to integers and then does the subtraction. &amp;nbsp;Assuming you require a leading zeros for hour and minute, the function for the time in minutes is (t1 is start time, t2 is end time):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;60*(int(substr(${t2}, 0, 2)) - int(substr(${t1}, 0, 2))) + &amp;nbsp;(int(substr(${t2}, 3, 5)) - int(substr(${t1}, 3, 5)))&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That being said, we are improving the behavior of now() in the next release of Survey123.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 20:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-total-time-when-start-and-end-times/m-p/881880#M30800</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2017-10-13T20:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate total time when start and end times field type is text</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/calculate-total-time-when-start-and-end-times/m-p/881881#M30801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome. It worked great. I cannot wait to see your improvements. Most of my issues with the survey I just tested were with how time functioned in the App. (p.s I hope you are making the time wheel more user friendly. esp. if you don't use the now() function.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Oct 2017 20:37:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/calculate-total-time-when-start-and-end-times/m-p/881881#M30801</guid>
      <dc:creator>BonnieWeller1</dc:creator>
      <dc:date>2017-10-13T20:37:31Z</dc:date>
    </item>
  </channel>
</rss>

