<?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 Difference between Time value and System Time in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Difference-between-Time-value-and-System-Time/m-p/1829019#M68330</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm developing a dashboard which currently tracks the time spent on a building site. Some of the data automatically collected for this is the Check In Time and Check Out Time. From this, we calculate a value for Minutes on Site, using Check Out Time - Check In Time.&amp;nbsp;However, this means that we cannot get a value for Minutes On Site while a person is still on site, as they do not have a Check Out Time.&lt;/P&gt;&lt;P&gt;How do I create a column on a table which displays Time (Now) - Check In Time in minutes?&lt;/P&gt;&lt;P&gt;The Check In Time is formatted as below;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"in_time_num",TO_CHAR(TO_DATE(OT."In Date", 'DD/MM/YYYY HH24:mi:SS'), 'HH24:mi') as IN_DATE_TIME,&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Minutes on Site is calculated as below;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ROUND((to_DATE(OT."Out Date",'DD/MM/YYYY HH24:mi:SS') - to_DATE(OT."In Date",'DD/MM/YYYY HH24:mi:SS')) * 24 * 60) AS "Minutes On Site",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Jordan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Aug 2021 10:41:49 GMT</pubDate>
    <dc:creator>jordan1</dc:creator>
    <dc:date>2021-08-17T10:41:49Z</dc:date>
    <item>
      <title>Difference between Time value and System Time</title>
      <link>https://community.qlik.com/t5/App-Development/Difference-between-Time-value-and-System-Time/m-p/1829019#M68330</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm developing a dashboard which currently tracks the time spent on a building site. Some of the data automatically collected for this is the Check In Time and Check Out Time. From this, we calculate a value for Minutes on Site, using Check Out Time - Check In Time.&amp;nbsp;However, this means that we cannot get a value for Minutes On Site while a person is still on site, as they do not have a Check Out Time.&lt;/P&gt;&lt;P&gt;How do I create a column on a table which displays Time (Now) - Check In Time in minutes?&lt;/P&gt;&lt;P&gt;The Check In Time is formatted as below;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"in_time_num",TO_CHAR(TO_DATE(OT."In Date", 'DD/MM/YYYY HH24:mi:SS'), 'HH24:mi') as IN_DATE_TIME,&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Minutes on Site is calculated as below;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ROUND((to_DATE(OT."Out Date",'DD/MM/YYYY HH24:mi:SS') - to_DATE(OT."In Date",'DD/MM/YYYY HH24:mi:SS')) * 24 * 60) AS "Minutes On Site",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;Jordan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 10:41:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Difference-between-Time-value-and-System-Time/m-p/1829019#M68330</guid>
      <dc:creator>jordan1</dc:creator>
      <dc:date>2021-08-17T10:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Time value and System Time</title>
      <link>https://community.qlik.com/t5/App-Development/Difference-between-Time-value-and-System-Time/m-p/1829050#M68333</link>
      <description>&lt;P&gt;Depending on your specific DB the syntax may change, but it looks like Oracle, so you would use Sysdate. That said, this isn't a Qlik question at all... in Qlik, the syntax would be Now(), but Qlik doesn't have a TO_DATE function.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ROUND((to_DATE(OT."Out Date",'DD/MM/YYYY HH24:mi:SS') - SYSDATE) * 24 * 60) AS "Minutes On Site",&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Aug 2021 12:26:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Difference-between-Time-value-and-System-Time/m-p/1829050#M68333</guid>
      <dc:creator>Or</dc:creator>
      <dc:date>2021-08-17T12:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between Time value and System Time</title>
      <link>https://community.qlik.com/t5/App-Development/Difference-between-Time-value-and-System-Time/m-p/1829700#M68379</link>
      <description>&lt;P&gt;Thanks! This sort of worked (the wrong way round).&lt;/P&gt;</description>
      <pubDate>Thu, 19 Aug 2021 10:24:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Difference-between-Time-value-and-System-Time/m-p/1829700#M68379</guid>
      <dc:creator>jordan1</dc:creator>
      <dc:date>2021-08-19T10:24:00Z</dc:date>
    </item>
  </channel>
</rss>

