<?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 VB or SQL for Time Rounding? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/vb-or-sql-for-time-rounding/m-p/300526#M17215</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need a simple solution for rounding time to the nearest minute. I have two date fields (one represents a start time, the other a finish time both in HH:MM:SS) and I've calculated a duration field with (DateDiff ( "n", [STARTTIME], [FINISHTIME] ) which results in a single minute value. The target field is Float type and after the calculation one can see residual rounding issues (EG: 21:10 being rounded to 22).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there some code I can include with the above DateDiff calc (or even run as stand alone) that will round to the nearest minute? (under 30-down, 30 and over-up). Any help would be mucho appreciated. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Larry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2013 11:48:10 GMT</pubDate>
    <dc:creator>LarryGaudieri</dc:creator>
    <dc:date>2013-02-27T11:48:10Z</dc:date>
    <item>
      <title>VB or SQL for Time Rounding?</title>
      <link>https://community.esri.com/t5/data-management-questions/vb-or-sql-for-time-rounding/m-p/300526#M17215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need a simple solution for rounding time to the nearest minute. I have two date fields (one represents a start time, the other a finish time both in HH:MM:SS) and I've calculated a duration field with (DateDiff ( "n", [STARTTIME], [FINISHTIME] ) which results in a single minute value. The target field is Float type and after the calculation one can see residual rounding issues (EG: 21:10 being rounded to 22).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there some code I can include with the above DateDiff calc (or even run as stand alone) that will round to the nearest minute? (under 30-down, 30 and over-up). Any help would be mucho appreciated. Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Larry&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 11:48:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/vb-or-sql-for-time-rounding/m-p/300526#M17215</guid>
      <dc:creator>LarryGaudieri</dc:creator>
      <dc:date>2013-02-27T11:48:10Z</dc:date>
    </item>
  </channel>
</rss>

