<?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 Find the difference in hours between two timestamps? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Find-the-difference-in-hours-between-two-timestamps/m-p/216786#M70061</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The number that date arithmetic returns is in 'Days'. To convert days to hours, you divide multiply by 24.&lt;/P&gt;&lt;P&gt;To convert 8 hours into the number of days, for comparison purposes:&lt;/P&gt;&lt;P&gt;1 day / 24 hours = 0.0416 X 8 hours = 0.33 (repeating)&lt;/P&gt;&lt;P&gt;The same holds for minutes, seconds, years, etc. Just treat whole numbers as 'days', and convert.&lt;/P&gt;&lt;P&gt;So in your case, I would take the time that I want to compare (8 hours) and convert that using the formula, and then just compare that to your date calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Jul 2010 18:55:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-07T18:55:26Z</dc:date>
    <item>
      <title>Find the difference in hours between two timestamps?</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-difference-in-hours-between-two-timestamps/m-p/216783#M70058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm trying to find the difference of two timestamps using interval(a-b), only I don't fully understand the numbers involved. Could anyone help explain to me how timestamp works? Essentially I want to say,&lt;/P&gt;&lt;P&gt;vAge = interval(timestamp(now()) - B)&lt;/P&gt;&lt;P&gt;if vAge &amp;lt;= '8 hours' Then&lt;/P&gt;&lt;P&gt;do something&lt;/P&gt;&lt;P&gt;The touble I'm having is working out what '8 hours' should look like? I've not had much luck deciphering the number that a timestamp gets converted from / to, from what I gather 0.0007 = 1 minute? Any help would be much appreciated! Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 15:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-difference-in-hours-between-two-timestamps/m-p/216783#M70058</guid>
      <dc:creator>richnorris</dc:creator>
      <dc:date>2010-07-07T15:14:33Z</dc:date>
    </item>
    <item>
      <title>Find the difference in hours between two timestamps?</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-difference-in-hours-between-two-timestamps/m-p/216784#M70059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, 8 hours seems to equate to 0.33334, but I only found that through trial and error and am still really non the wiser as to why I'm using this value. There must be a more straightforward way of checking the difference in hours between two times?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 15:18:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-difference-in-hours-between-two-timestamps/m-p/216784#M70059</guid>
      <dc:creator>richnorris</dc:creator>
      <dc:date>2010-07-07T15:18:39Z</dc:date>
    </item>
    <item>
      <title>Find the difference in hours between two timestamps?</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-difference-in-hours-between-two-timestamps/m-p/216785#M70060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rich,&lt;/P&gt;&lt;P&gt;That value is equivalent to say that 8 hours are a third of a day. Interval() is used when the resulting time is more than 24 hours, and want to be showed as hours:mins:secs. So I'm guessing you are looking something like (untested)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;=interval(time('12:30', 'hh:mm') - time('03:54', 'hh:mm'), 'hh:mm')&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;will return something like '08:36'.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 15:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-difference-in-hours-between-two-timestamps/m-p/216785#M70060</guid>
      <dc:creator>Miguel_Angel_Baeyens</dc:creator>
      <dc:date>2010-07-07T15:30:42Z</dc:date>
    </item>
    <item>
      <title>Find the difference in hours between two timestamps?</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-difference-in-hours-between-two-timestamps/m-p/216786#M70061</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The number that date arithmetic returns is in 'Days'. To convert days to hours, you divide multiply by 24.&lt;/P&gt;&lt;P&gt;To convert 8 hours into the number of days, for comparison purposes:&lt;/P&gt;&lt;P&gt;1 day / 24 hours = 0.0416 X 8 hours = 0.33 (repeating)&lt;/P&gt;&lt;P&gt;The same holds for minutes, seconds, years, etc. Just treat whole numbers as 'days', and convert.&lt;/P&gt;&lt;P&gt;So in your case, I would take the time that I want to compare (8 hours) and convert that using the formula, and then just compare that to your date calculation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jul 2010 18:55:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-difference-in-hours-between-two-timestamps/m-p/216786#M70061</guid>
      <dc:creator />
      <dc:date>2010-07-07T18:55:26Z</dc:date>
    </item>
    <item>
      <title>Find the difference in hours between two timestamps?</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-difference-in-hours-between-two-timestamps/m-p/216787#M70062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ryan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have done this that how to calculate the difference between hours in two timestamps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m sending you the attachment. Please upload the test file and check it out. is this the what you required or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have selected two date with timestamp and now, it will take starting hour and ending hour and calculate the difference between them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this is something like that what you required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz let me know its fruitful for u or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Neetu Singh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 12:32:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-difference-in-hours-between-two-timestamps/m-p/216787#M70062</guid>
      <dc:creator>neetu_singh</dc:creator>
      <dc:date>2010-07-09T12:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find the difference in hours between two timestamps?</title>
      <link>https://community.qlik.com/t5/QlikView/Find-the-difference-in-hours-between-two-timestamps/m-p/216788#M70063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi neetu,&lt;/P&gt;&lt;P&gt;Can you please send the logic ,because of personal edition ,I cant open your Qlikview app.&lt;/P&gt;&lt;P&gt;Thank's &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Sumit Jadhav.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Apr 2017 09:26:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Find-the-difference-in-hours-between-two-timestamps/m-p/216788#M70063</guid>
      <dc:creator>sumitjadhav</dc:creator>
      <dc:date>2017-04-28T09:26:31Z</dc:date>
    </item>
  </channel>
</rss>

