<?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: Calculate the difference in seconds between two time stamps. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113650#M603587</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I typed too fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;interval(datEnd-datStart, 's')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;should display the value in seconds. What does it display for you?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Aug 2018 05:32:57 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-08-14T05:32:57Z</dc:date>
    <item>
      <title>Calculate the difference in seconds between two time stamps.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113643#M603580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have used a resident load group by with in my code and I cannot calculate the correct duration in seconds between the start timestamp and end time stamp&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current_Data: &lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;datStart, &lt;/P&gt;&lt;P&gt;datEnd, &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; ""Looking for a line to calculate the difference between datStart &amp;amp; datEnd ******&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MachineName as L_Machine_Name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RESIDENT Data &lt;/P&gt;&lt;P&gt;Group by MachineName;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2018 10:49:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113643#M603580</guid>
      <dc:creator>ryan_evans1984</dc:creator>
      <dc:date>2018-08-07T10:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the difference in seconds between two time stamps.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113644#M603581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no aggregate here, Not sure why you required Group By? Perhaps this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Current_Data:&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Load&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;datStart,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;datEnd,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Interval(datStart-dayEnd,'hh:mm:ss') as NewField,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MachineName as L_Machine_Name&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;RESIDENT Data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 00:25:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113644#M603581</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-08-08T00:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the difference in seconds between two time stamps.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113645#M603582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you tell us the date format your fields has.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 02:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113645#M603582</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2018-08-08T02:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the difference in seconds between two time stamps.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113646#M603583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming datEnd and datStart are timestamps, the differences in seconds would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num(interval(datEnd-datStart, 's'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may perhaps not want the actual seconds, but rather keep the standard duration (1 = 1 day) and instead just display the value as seconds. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;interval(datEnd-datStart, 's')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 04:25:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113646#M603583</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-08-08T04:25:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the difference in seconds between two time stamps.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113647#M603584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp; for the comments. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a group by because I wanted a small table by machine... the main table 'data' has 800k rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just wanted to show the last datstart and datend by machine in a small table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 08:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113647#M603584</guid>
      <dc:creator>ryan_evans1984</dc:creator>
      <dc:date>2018-08-08T08:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the difference in seconds between two time stamps.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113648#M603585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks&amp;nbsp; for the comments. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I created a group by because I wanted a small table by machine... the main table 'data' has 800k rows. &lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I just wanted to show the last datstart and datend by machine in a small table. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 08:23:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113648#M603585</guid>
      <dc:creator>ryan_evans1984</dc:creator>
      <dc:date>2018-08-08T08:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the difference in seconds between two time stamps.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113649#M603586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the comments. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;num(interval(datEnd-datStart, 's')) works and displays a number but I wanted seconds. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And the &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; background-color: #f2f2f2;"&gt;interval(datEnd-datStart, 's') doesnt work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; background-color: #f2f2f2;"&gt;tried multiple things and still cannot get this into seconds.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px; background-color: #f2f2f2;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2018 08:25:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113649#M603586</guid>
      <dc:creator>ryan_evans1984</dc:creator>
      <dc:date>2018-08-08T08:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the difference in seconds between two time stamps.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113650#M603587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I typed too fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;interval(datEnd-datStart, 's')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;should display the value in seconds. What does it display for you?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;-Rob&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 05:32:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113650#M603587</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-08-14T05:32:57Z</dc:date>
    </item>
    <item>
      <title>Re: Calculate the difference in seconds between two time stamps.</title>
      <link>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113651#M603588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum(datEnd-datStart) * 24 * 60 * 60&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 10:40:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculate-the-difference-in-seconds-between-two-time-stamps/m-p/113651#M603588</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-08-14T10:40:50Z</dc:date>
    </item>
  </channel>
</rss>

