<?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: timestamps difference in hours in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/timestamps-difference-in-hours/m-p/379120#M1171366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can i test if my timestamps fields are correctly interpreted by QV?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 20 Aug 2012 13:03:10 GMT</pubDate>
    <dc:creator>bvmike2001</dc:creator>
    <dc:date>2012-08-20T13:03:10Z</dc:date>
    <item>
      <title>timestamps difference in hours</title>
      <link>https://community.qlik.com/t5/QlikView/timestamps-difference-in-hours/m-p/379118#M1171364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how can i calculate two timestamps difference in hours form two timestamp fields F1 and F2?&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>Mon, 20 Aug 2012 12:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamps-difference-in-hours/m-p/379118#M1171364</guid>
      <dc:creator>bvmike2001</dc:creator>
      <dc:date>2012-08-20T12:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: timestamps difference in hours</title>
      <link>https://community.qlik.com/t5/QlikView/timestamps-difference-in-hours/m-p/379119#M1171365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If your timestamps are correctly interpreted by QV, i.e. have a numerical representation, you should be able to just use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;=interval( F1 - F2, 'hh')&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 12:54:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamps-difference-in-hours/m-p/379119#M1171365</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-20T12:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: timestamps difference in hours</title>
      <link>https://community.qlik.com/t5/QlikView/timestamps-difference-in-hours/m-p/379120#M1171366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can i test if my timestamps fields are correctly interpreted by QV?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 13:03:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamps-difference-in-hours/m-p/379120#M1171366</guid>
      <dc:creator>bvmike2001</dc:creator>
      <dc:date>2012-08-20T13:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: timestamps difference in hours</title>
      <link>https://community.qlik.com/t5/QlikView/timestamps-difference-in-hours/m-p/379121#M1171367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An indication is the correct label if you hover your mouse over the field in table view (CTRL-T). It should say timestamp, numerical (etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, by default the field values will be differently aligned (right) than pure text values (left).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use num(FIELD), you get the numerical representation returned, a number. If you use text(FIELD), you get the textual representation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A QV timestamp is a dual and should have both representations (the numerical representation is the reason you can use numerical operators like +,- on timestamps or dates).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your field is not correctly interpreted, use a correct standard format setting in your script&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET DateFormat='M/D/YYYY';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SET TimestampFormat='M/D/YYYY h:mm:ss[.fff] TT';&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or use the QV functions timestamp#() resp. date#() to interpret your input values. Please check these functions and the date and time format codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There was also recently a nice blog entry by Henric Cronstroem explaining all this in detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Aug 2012 13:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/timestamps-difference-in-hours/m-p/379121#M1171367</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2012-08-20T13:12:57Z</dc:date>
    </item>
  </channel>
</rss>

