<?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 Calculating Time between time stamps in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528058#M197332</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I've been trying to modify this statement in this post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/79893"&gt;http://community.qlik.com/thread/79893&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;I'm dealing with pure time stamps, no dates, and I need to calculate the time between multiple time stamps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;I read somewhere there is a problem with using MM for minutes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Can I modify this or other statements to calculate time:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;=Ceil(Interval(Date#([Field2], 'MM/DD/YYYY hh:mm:ss TTT') - Date#([Field1], 'MM/DD/YYYY hh:mm:ss TTT'), 'DD' ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;or are there other options?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Thank you for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Dec 2013 17:04:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-12-26T17:04:46Z</dc:date>
    <item>
      <title>Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528058#M197332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I've been trying to modify this statement in this post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/thread/79893"&gt;http://community.qlik.com/thread/79893&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;I'm dealing with pure time stamps, no dates, and I need to calculate the time between multiple time stamps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;I read somewhere there is a problem with using MM for minutes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Can I modify this or other statements to calculate time:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;=Ceil(Interval(Date#([Field2], 'MM/DD/YYYY hh:mm:ss TTT') - Date#([Field1], 'MM/DD/YYYY hh:mm:ss TTT'), 'DD' ))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;or are there other options?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri','sans-serif'; font-size: 11pt;"&gt;Thank you for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 17:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528058#M197332</guid>
      <dc:creator />
      <dc:date>2013-12-26T17:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528059#M197333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried, Num(Field2) - Num(Field1).&amp;nbsp; That will give you the difference in days.&amp;nbsp; You can multiply by 60 once or twice to get it into hours or minutes.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 17:09:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528059#M197333</guid>
      <dc:creator>jpapador</dc:creator>
      <dc:date>2013-12-26T17:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528060#M197334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, I will try that.&amp;nbsp; Looking for time in minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do get negative numbers when the time crosses a calendar date.&amp;nbsp; Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 17:13:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528060#M197334</guid>
      <dc:creator />
      <dc:date>2013-12-26T17:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528061#M197335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Rebecca&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MM is for a 2 digit month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mm is for minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval() is a good function to use, as per this example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;Interval ( &lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; date#( '12/26/2013 12:12:12' , 'MM/DD/YYYY hh:mm:ss')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; -&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;&amp;nbsp; date#( '12/25/2013 22:22:22' , 'MM/DD/YYYY hh:mm:ss')&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt; , 'mm' )&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #993300;"&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #993300;"&gt;&lt;SPAN style="color: #000000;"&gt;Best Regards,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 17:21:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528061#M197335</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-26T17:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528062#M197336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Bill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working with pure timestamps, so I am now modifying my load statement to create DTS:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hopefully then I can try your suggestion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 18:54:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528062#M197336</guid>
      <dc:creator />
      <dc:date>2013-12-26T18:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528063#M197337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;I added the following to my load statement to my load statement to obtain DTS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(&lt;SPAN style="color: #0000ff;"&gt;Timestamp#&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ReceiveDateODBC&lt;/SPAN&gt; &amp;amp; ' '&amp;amp; &lt;SPAN style="color: #800000;"&gt;ReceiveTimeODBC&lt;/SPAN&gt;,'DD/MM/YYYY hh:mm:ss'),'DD/MM/YYY hh:mm:ss') &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ReceiveDTS&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The results are as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="714"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="18" width="102"&gt;&lt;SPAN style="font-size: 10pt;"&gt;BatTstCode&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="102"&gt;&lt;SPAN style="font-size: 10pt;"&gt;RecDateODBC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="102"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ReceiveTimeODBC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="102"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ReceivedDTS&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="102"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ResultDateODBC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="102"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ResultTimeODBC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="border-left: medium none;" width="102"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ResultDTS&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ADMIN&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;22-Nov-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;16:26:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;41600 0.68472222222222&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;6-Dec-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;15:43:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;41614 0.65486111111111&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;ADMIN&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;22-Nov-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;16:26:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;41600 0.68472222222222&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;22-Nov-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;16:27:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;41600 0.68541666666667&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;UCUL&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;22-Nov-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;16:26:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;41600 0.68472222222222&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;23-Nov-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;8:40:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;41601 0.36111111111111&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="18" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;UCUL&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;22-Nov-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;16:26:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;41600 0.68472222222222&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;24-Nov-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;10:14:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;41602 0.42638888888889&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Any pointers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 19:27:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528063#M197337</guid>
      <dc:creator />
      <dc:date>2013-12-26T19:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528064#M197338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Rebecca&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;TimeStamp ( &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;Timestamp#&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ReceiveDateODBC&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &amp;amp; ' '&amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ReceiveTimeODBC&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,'DD/MM/YYYY hh:mm:ss'),'DD/MM/YYYY hh:mm:ss')&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ReceiveDTS&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Bill&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Dec 2013 19:43:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528064#M197338</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-12-26T19:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528065#M197339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Bill for all your help.&amp;nbsp; The output is still not usable for calculating the time between events.&amp;nbsp; If I could work strictly from time, there would be no issue, but the crossing of calendar day gives me bad results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other pointers?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 20:22:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528065#M197339</guid>
      <dc:creator />
      <dc:date>2014-01-02T20:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528066#M197340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Generally we can use the &lt;STRONG&gt;Interval&lt;/STRONG&gt; function to calculate the difference b/n time stamps. But the actual format of Interval function is time format. For example if you want calculate the difference the time in Hours, first calculate in Seconds and then convert this seconds into Number. Once we get the difference in Seconds we can convert into any hours, days or Minutes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num#(Text(Intervale(Timestamp1 - Timestamp2 , 's'))) AS DIFF_IN_SEC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 20:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528066#M197340</guid>
      <dc:creator />
      <dc:date>2014-01-02T20:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528067#M197341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thank you for your response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the interval function, but will try this syntax as well. Unfortunately, my time stamps can cross days so I'm getting inaccurate results.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 21:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528067#M197341</guid>
      <dc:creator />
      <dc:date>2014-01-02T21:08:13Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528068#M197342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rebecca, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this code to combine your date and time. &lt;/P&gt;&lt;P&gt;date#(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ReceiveDateODBC&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;, 'DD-MMM-YY') + Timestamp#(&lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ReceiveTimeODBC&lt;/SPAN&gt;, 'hh:mm:ss') as ReceivedDTS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=(date#('22-Nov-13', 'DD-MMM-YY')) + Timestamp#('16:26:00', 'hh:mm:ss')&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; 41600.684722222&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date(floor(41600.684722222), 'MM/DD/YYYY') &amp;gt;&amp;gt; 11/22/2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Timestamp(frac(41600.684722222), 'hh:mm:ss') &amp;gt;&amp;gt; 16:26:00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can add or subtract two different dates and then calculate the time. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e. &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="border: 0px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: rgb(61, 61, 61); width: 714px;"&gt;&lt;TBODY style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl63" height="18" style="padding-right: 4px; padding-left: 4px; border: 0px solid black; font-style: inherit; font-family: inherit;" width="102"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;BatTstCode&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="102"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;RecDateODBC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="102"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;ReceiveTimeODBC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="102"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;ReceivedDTS&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="102"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;ResultDateODBC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="102"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;ResultTimeODBC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63" style="padding-right: 4px; padding-left: 4px; border-width: 0px 0px 0px medium; border-style: solid solid solid none; border-top-color: black; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;" width="102"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;ResultDTS&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="border: 0px; font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&lt;TD class="xl64" height="18" style="padding-right: 4px; padding-left: 4px; border-width: medium 0px 0px; border-style: none solid solid; border-right-color: black; border-bottom-color: black; border-left-color: black; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;ADMIN&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="padding-right: 4px; padding-left: 4px; border-width: medium 0px 0px medium; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;22-Nov-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="padding-right: 4px; padding-left: 4px; border-width: medium 0px 0px medium; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;16:26:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-width: medium 0px 0px medium; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;41600 0.68472222222222&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="padding-right: 4px; padding-left: 4px; border-width: medium 0px 0px medium; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;6-Dec-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="padding-right: 4px; padding-left: 4px; border-width: medium 0px 0px medium; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;15:43:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl64" style="padding-right: 4px; padding-left: 4px; border-width: medium 0px 0px medium; border-style: none solid solid none; border-right-color: black; border-bottom-color: black; font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;41614 0.65486111111111&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;=(date#('6-Dec-13', 'D-MMM-YY')) + Timestamp#('15:43:00', 'hh:mm:ss')&lt;/P&gt;&lt;P&gt;- &lt;/P&gt;&lt;P&gt;(date#('22-Nov-13', 'D-MMM-YY')) + Timestamp#('16:26:00', 'hh:mm:ss') &amp;gt;&amp;gt; 15.33958333332&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Timestamp(frac(15.33958333332), 'hh:mm:ss') &amp;gt;&amp;gt; 08:09:00&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;15 days and 8 hours and 9 minutes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 21:47:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528068#M197342</guid>
      <dc:creator />
      <dc:date>2014-01-02T21:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528069#M197343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 10pt;"&gt;Still trying:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Here are all the different versions in my load statement:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;date#&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Timestamp#&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ReceiveDateODBC&lt;/SPAN&gt; &amp;amp; ' '&amp;amp; &lt;SPAN style="color: #800000;"&gt;ReceiveTimeODBC&lt;/SPAN&gt;,'DD/MM/YYYY hh:mm:ss')) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ReceiveDTS&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;date#&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Timestamp#&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ReceiveDate&lt;/SPAN&gt; &amp;amp; ' '&amp;amp; &lt;SPAN style="color: #800000;"&gt;ReceiveTime&lt;/SPAN&gt;,'DD/MM/YYYY hh:mm:ss')) &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ReceiveDTS1&lt;/SPAN&gt;, &lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;Timestamp#&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ReceiveDateODBC&lt;/SPAN&gt; &amp;amp; ' '&amp;amp; &lt;SPAN style="color: #800000;"&gt;ReceiveTimeODBC&lt;/SPAN&gt;,'DD/MM/YYYY hh:mm:ss') &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ReceiveDTS2&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;TimeStamp&lt;/SPAN&gt; ( &lt;SPAN style="color: #0000ff;"&gt;Timestamp#&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ReceiveDateODBC&lt;/SPAN&gt; + &lt;SPAN style="color: #800000;"&gt;ReceiveTimeODBC&lt;/SPAN&gt;,'DD/MM/YYYY hh:mm:ss'),'DD/MM/YYYY hh:mm:ss') &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ReceiveDTS3&lt;/SPAN&gt;,&lt;BR /&gt;&lt;SPAN style="color: #0000ff;"&gt;TimeStamp&lt;/SPAN&gt; ( &lt;SPAN style="color: #0000ff;"&gt;Timestamp#&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;ReceiveDate&lt;/SPAN&gt; + &lt;SPAN style="color: #800000;"&gt;ReceiveTime&lt;/SPAN&gt;,'DD/MM/YYYY hh:mm:ss'),'DD/MM/YYYY hh:mm:ss') &lt;SPAN style="color: #0000ff;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;ReceiveDTS4&lt;/SPAN&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Output for DTS3 and DTS4 were null&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;And here is the output.&amp;nbsp; You can see the output is still off and does not convert to an accurate DTS.&amp;nbsp; There is a space and a leading zero between the date (41614) and the time (0.040972) on the created DTS.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 668px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl69" height="18" width="107"&gt;&lt;SPAN style="font-size: 8pt;"&gt;ReceiveDateODBC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none;" width="74"&gt;&lt;SPAN style="font-size: 8pt;"&gt;ReceiveDate&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none;" width="109"&gt;&lt;SPAN style="font-size: 8pt;"&gt;ReceiveTimeODBC&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none;" width="75"&gt;&lt;SPAN style="font-size: 8pt;"&gt;ReceiveTime&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none;" width="145"&gt;&lt;SPAN style="font-size: 8pt;"&gt;ReceiveDTS&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none;" width="158"&gt;&lt;SPAN style="font-size: 8pt;"&gt;ReceiveDTS2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl71" height="18" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;6-Dec-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;13855&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0:59:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0059&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;41614 0.040972222222222&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;41614 0.040972222222222&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl71" height="18" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;6-Dec-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;13855&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0:59:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0059&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;41614 0.040972222222222&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;41614 0.040972222222222&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl71" height="18" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;6-Dec-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;13855&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;3:27:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0327&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;41614 0.14375&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;41614 0.14375&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl71" height="18" style="border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;6-Dec-13&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;13855&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right" class="xl66" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;3:27:00&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;0327&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;41614 0.14375&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;41614 0.14375&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 22:49:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528069#M197343</guid>
      <dc:creator />
      <dc:date>2014-01-02T22:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528070#M197344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Hi Rebecca, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should work if the format is correct.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;date#(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ReceiveDateODBC&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, 'D-MMM-YY') + Timestamp#(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ReceiveTimeODBC&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, 'hh:mm:ss') as ReceivedDTS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or &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;"&gt;Timestamp#(&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ReceiveDateODBC&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&amp;amp; '_' &amp;amp; &lt;SPAN style="color: #800000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ReceiveTimeODBC&lt;/SPAN&gt;, 'D-MMM-YY_hh:mm:ss') as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ReceivedDTS&lt;/SPAN&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;"&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;"&gt;However, combining date and time will increase your data size.&amp;nbsp; Try to calculate the difference and save the result if needed or calculate the time from your expression.&amp;nbsp; &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;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Or y&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;ou can try to save the data separately&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;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;num(date#(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ReceiveDateODBC&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, 'D-MMM-YY')) as ReceivedDate&lt;/SPAN&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;"&gt;num(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Timestamp#(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #800000;"&gt;ReceiveTimeODBC&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;, 'hh:mm:ss')&lt;/SPAN&gt;) as ReceivedTime&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ie. Your date and time format from the database:&amp;nbsp; 6-Dec-13 and 00:59:00&lt;/P&gt;&lt;P&gt;num(date#('6-Dec-13' , 'D-MMM-YY')) = 41614&lt;/P&gt;&lt;P&gt;num(Timestamp#('00:59:00' , 'hh:mm:ss')) = 0.040972222224809&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your date and time format from the database: 2013-12-06 and 00:59:00&lt;/P&gt;&lt;P&gt;num(date#('2013-12-06' , 'YYYY-MM-DD')) = 41614&lt;/P&gt;&lt;P&gt;num(Timestamp#('00:59:00' , 'hh:mm:ss')) = 0.040972222224809&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ReceivedDate+ReceivedTime = 41614.040972222224809&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 00:13:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528070#M197344</guid>
      <dc:creator />
      <dc:date>2014-01-03T00:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528071#M197345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please find the attached qvw for reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAMPLE:&lt;/P&gt;&lt;P&gt;LOAD * ,&amp;nbsp; Num(DIFF_IN_SEC/3600,'#####0.00') AS Hours_Diff;&lt;/P&gt;&lt;P&gt;LOAD * ,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Num#(Text(Interval(ResultTS-ReciveTS , 's'))) AS DIFF_IN_SEC&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;LOAD BatTstCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecDateODBC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReceiveTimeODBC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp#(RecDateODBC &amp;amp; ' ' &amp;amp; ReceiveTimeODBC , 'DD-MMM-YYYY mm:hh:ss') AS ReciveTS ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResultDateODBC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResultTimeODBC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Timestamp#(ResultDateODBC &amp;amp; ' ' &amp;amp; ResultTimeODBC , 'DD-MMM-YYYY mm:hh:ss') AS ResultTS&lt;/P&gt;&lt;P&gt;FROM timestamp.txt (txt, codepage is 1252, embedded labels, delimiter is '\t', msq);&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 01:48:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528071#M197345</guid>
      <dc:creator />
      <dc:date>2014-01-03T01:48:29Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528072#M197346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Thank you for this feedback.&amp;nbsp; One of my coworkers just suggested I mention I'm using a Cache database and that this might change your responses to me?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the various concatonation, joins, num, interval, timestamp#,date# and still am not able to create a valid DTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still at it if anyone has any new suggestions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you kindly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 20:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528072#M197346</guid>
      <dc:creator />
      <dc:date>2014-01-06T20:12:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528073#M197347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It would be more helpful, if you provide some samples.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 20:16:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528073#M197347</guid>
      <dc:creator />
      <dc:date>2014-01-06T20:16:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528074#M197348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is some of the sample data.&amp;nbsp; You can see I have a calendar and a statistical date and time fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My goal is to properly concatonate the Date and Time fields so I can calculate the time difference, in minutes, between various other time based events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried both the DateODBC and Date fields - the results are the same -- either nothing, or a DTS that has a space and does not properly calculate for a time difference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you kindly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jan 2014 22:42:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528074#M197348</guid>
      <dc:creator />
      <dc:date>2014-01-06T22:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528075#M197349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rebecca, Firstly, we convert the into timestamps and then I am calculating the time diff in minutes. Please find the attached qvw file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD * ,&lt;/P&gt;&lt;P&gt;Fabs(Num#(Text(Interval(Timestamp(ResultDate + Hour(Time#(ResultTime,'hhmm'))/24 + Minute(Time#(ResultTime,'hhmm'))/1440)-Timestamp(ReceiveDate + Hour(Time#(ReceiveTime,'hhmm'))/24 + Minute(Time#(ReceiveTime,'hhmm'))/1440),'mm')))) AS TIME_MIN,&lt;/P&gt;&lt;P&gt;fabs(Num#(Text(Interval(Timestamp(num(ResultDateODBC) + Hour(ResultTimeODBC)/24 + Minute(ResultTimeODBC)/1440)-Timestamp(num(ReceiveDateODBC) + Hour(ReceiveTimeODBC)/24 + Minute(ReceiveTimeODBC)/1440),'mm')))) AS TIME_MIN_ODBC&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;LOAD BatTstCode,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReceiveDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReceiveTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReceiveDateODBC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReceiveTimeODBC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResultDate,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResultTime,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResultDateODBC,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResultTimeODBC&lt;/P&gt;&lt;P&gt;FROM TimeSampleData.xls (biff, embedded labels, table is [Sheet1$]);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Fabs function converts -ve values into +ve values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 02:42:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528075#M197349</guid>
      <dc:creator />
      <dc:date>2014-01-07T02:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528076#M197350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rebcca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Somehow QlikView converts Date and Time into numbers and format was not needed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway, I have converted your excel file to a csv file and implemented the formatting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some results are strange.&amp;nbsp; Your ResultDate or ResultTime is earlier than ReceiveDate or Time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 02:44:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528076#M197350</guid>
      <dc:creator />
      <dc:date>2014-01-07T02:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Calculating Time between time stamps</title>
      <link>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528077#M197351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I have tried this, unfortunately, some of the times cross calendar days and the calculation does not show the true time difference.&amp;nbsp; Thank you for this help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jan 2014 15:13:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculating-Time-between-time-stamps/m-p/528077#M197351</guid>
      <dc:creator />
      <dc:date>2014-01-07T15:13:26Z</dc:date>
    </item>
  </channel>
</rss>

