<?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 time string an round time in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-time-string-an-round-time/m-p/622538#M478936</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply and your great solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Feb 2014 12:07:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2014-02-24T12:07:16Z</dc:date>
    <item>
      <title>Convert time string an round time</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-time-string-an-round-time/m-p/622535#M478933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will convert date and time in the right format.&lt;/P&gt;&lt;P&gt;strTime: 10.02.2014 07:45:50&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10.02.2014 -&amp;gt; Date(Left(strTime,10),'DD.MM.YYYY') AS DAT,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;07:45:50 -&amp;gt; Time#(Right(strTime,8),'HH.MM.SS') AS TIM&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;07:45:50 -&amp;gt; Time(Right(strTime,8)) as TIM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, strTime should be round to next 10 min, e.g. 07:50:00. I've check a formula in excel, but in QlikView it's no working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;07:50:00 -&amp;gt; RUNDEN(TIM*24/(1/6);0)*(1/6)/24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea, whats wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 10:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-time-string-an-round-time/m-p/622535#M478933</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-24T10:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Convert time string an round time</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-time-string-an-round-time/m-p/622536#M478934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stefan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd rather use Floor() and Frac() to extract day and time part from the timestamp. &lt;/P&gt;&lt;P&gt;When using Frac() you can specify nearest number to round to. 1 / 24 / 6 is going to round "roughly" to closest 10 minutes. By "roughly" I mean rounding errors described here community.qlik.com/blogs/qlikviewdesignblog/2013/12/17/rounding-errors &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lukasz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 11:00:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-time-string-an-round-time/m-p/622536#M478934</guid>
      <dc:creator />
      <dc:date>2014-02-24T11:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert time string an round time</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-time-string-an-round-time/m-p/622537#M478935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would not use string functions for this. Hence, I would use &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(Floor(TimeStamp#(strTime,'DD.MM.YYYY hh:mm:ss')),'DD.MM.YYYY') AS Date,&lt;/P&gt;&lt;P&gt;Time(Frac(TimeStamp#(strTime,'DD.MM.YYYY hh:mm:ss')),'hh:mm:ss') AS Time,&amp;nbsp; // (seconds)&lt;/P&gt;&lt;P&gt;Time(Ceil(Frac(TimeStamp#(strTime,'DD.MM.YYYY hh:mm:ss')),10/24/60),'hh:mm') AS Time10m, // (10-min interval)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HIC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 11:07:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-time-string-an-round-time/m-p/622537#M478935</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2014-02-24T11:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Convert time string an round time</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-time-string-an-round-time/m-p/622538#M478936</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Henric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply and your great solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Feb 2014 12:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-time-string-an-round-time/m-p/622538#M478936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-02-24T12:07:16Z</dc:date>
    </item>
  </channel>
</rss>

