<?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: Timestamp Comparison Questions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-Questions/m-p/1546690#M598693</link>
    <description>&lt;P&gt;Hi Conwayro,&lt;/P&gt;&lt;P&gt;After I open your csv, I saw that the timestamp1 and timestamp2 are totally same, so I think the comparison is 0 for these samples.&lt;/P&gt;&lt;P&gt;And for your questions, I think you can use below function to solve that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;1.=Interval( Timestamp1-Timestamp2, 'hh:mm' ) &lt;/PRE&gt;&lt;PRE&gt;2.=Interval(Timestamp2 - now(), 'hh:mm' ) &lt;/PRE&gt;&lt;P&gt;if not correct, please tell me what you want and it's better to give a sample.&lt;/P&gt;&lt;P&gt;Aiolos Zhao&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Feb 2019 07:00:45 GMT</pubDate>
    <dc:creator>uacg0009</dc:creator>
    <dc:date>2019-02-20T07:00:45Z</dc:date>
    <item>
      <title>Timestamp Comparison Questions</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-Questions/m-p/1546683#M598692</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have&amp;nbsp; a CSV file with two timestamps in (see attached) and I'm trying to do the following at load:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a new column in my table with as a comparison between the two timestamps in 'hh:mm' format&lt;/LI&gt;&lt;LI&gt;Create an second new column with a comparison between Timestamp2 and current (now)&amp;nbsp;time&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I have tried lots of different ways but have been unsuccessful...and I suspect it's down to the format of the timestamp field in the CSV file&lt;/P&gt;&lt;P&gt;Ideas please&lt;/P&gt;&lt;P&gt;P.S the native table file has to be a CSV as it's an auto-output from the data source...and I cannot connect to the data source directly&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 06:27:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-Questions/m-p/1546683#M598692</guid>
      <dc:creator>conwayro</dc:creator>
      <dc:date>2019-02-20T06:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: Timestamp Comparison Questions</title>
      <link>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-Questions/m-p/1546690#M598693</link>
      <description>&lt;P&gt;Hi Conwayro,&lt;/P&gt;&lt;P&gt;After I open your csv, I saw that the timestamp1 and timestamp2 are totally same, so I think the comparison is 0 for these samples.&lt;/P&gt;&lt;P&gt;And for your questions, I think you can use below function to solve that:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;1.=Interval( Timestamp1-Timestamp2, 'hh:mm' ) &lt;/PRE&gt;&lt;PRE&gt;2.=Interval(Timestamp2 - now(), 'hh:mm' ) &lt;/PRE&gt;&lt;P&gt;if not correct, please tell me what you want and it's better to give a sample.&lt;/P&gt;&lt;P&gt;Aiolos Zhao&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2019 07:00:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Timestamp-Comparison-Questions/m-p/1546690#M598693</guid>
      <dc:creator>uacg0009</dc:creator>
      <dc:date>2019-02-20T07:00:45Z</dc:date>
    </item>
  </channel>
</rss>

