<?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: Convert h:mm;ss to seconds in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488729#M182623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=num( Time#('1.30;00', 'h.mm;ss')) * 24 * 3600&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2014 13:29:06 GMT</pubDate>
    <dc:creator>luciancotea</dc:creator>
    <dc:date>2014-01-09T13:29:06Z</dc:date>
    <item>
      <title>Convert h:mm;ss to seconds</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488727#M182621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the easiest way to convert "1.30;00" to seconds?&lt;/P&gt;&lt;P&gt;The values after ";" that I guess is seconds is allways '00' so maybe it doesn't need to be taken care of.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance! &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 13:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488727#M182621</guid>
      <dc:creator />
      <dc:date>2014-01-09T13:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Convert h:mm;ss to seconds</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488728#M182622</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;&lt;STRONG&gt;try this&lt;BR /&gt;&lt;/STRONG&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;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&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;STRONG&gt;interval(Interval#('02:30','mm:ss'),'ss')&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 13:25:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488728#M182622</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2014-01-09T13:25:16Z</dc:date>
    </item>
    <item>
      <title>Re: Convert h:mm;ss to seconds</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488729#M182623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=num( Time#('1.30;00', 'h.mm;ss')) * 24 * 3600&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 13:29:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488729#M182623</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2014-01-09T13:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Convert h:mm;ss to seconds</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488730#M182624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I would like to use a field (that have the time format h.mm;ss) instead:&lt;/P&gt;&lt;P&gt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;=num( Time#(&lt;STRONG&gt;&lt;EM&gt;field&lt;/EM&gt;&lt;/STRONG&gt;, 'h.mm;ss')) * 24 * 3600&lt;/SPAN&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 13:36:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488730#M182624</guid>
      <dc:creator />
      <dc:date>2014-01-09T13:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert h:mm;ss to seconds</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488731#M182625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And do it in the script?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 13:37:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488731#M182625</guid>
      <dc:creator />
      <dc:date>2014-01-09T13:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Convert h:mm;ss to seconds</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488732#M182626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hej:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;Date,TimeStamp&lt;/P&gt;&lt;P&gt;'2014-01-02 01:30:23', '1.30;00'&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tid:&lt;/P&gt;&lt;P&gt;Load &lt;/P&gt;&lt;P&gt;num( Time#(TimeStamp, 'h.mm;ss'))* 24 * 3600 as TimeField&lt;/P&gt;&lt;P&gt;Resident Hej;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 13:48:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488732#M182626</guid>
      <dc:creator />
      <dc:date>2014-01-09T13:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: Convert h:mm;ss to seconds</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488733#M182627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do anything in script as long as you know that:&lt;/P&gt;&lt;P&gt;-DateTime field is in fact a FLOAT number where:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - the integer part = floor(DateTime) = Date info (number of days passed since 31 Dec 1899), &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - the fractional part = frac(DateTime)) = Time info (time passed since midnight)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in our case, &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Time#('1.30;00', 'h.mm;ss')&lt;/SPAN&gt; is converting from TEXT to TIME, using a custom format. Because you had only time info in your example I directly applied the num() function which transformed from TIME to FLOAT.&lt;/P&gt;&lt;P&gt;At the end I multiplied with 24 (hours) * 60 minutes * 60 seconds to transform from FLOAT to SECONDS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2014 16:08:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488733#M182627</guid>
      <dc:creator>luciancotea</dc:creator>
      <dc:date>2014-01-09T16:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Convert h:mm;ss to seconds</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488734#M182628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table:&lt;/P&gt;&lt;P&gt;Id,&lt;/P&gt;&lt;P&gt;Amount,&lt;/P&gt;&lt;P&gt;OBE,&lt;/P&gt;&lt;P&gt;OBK,&lt;/P&gt;&lt;P&gt;OBS,&lt;/P&gt;&lt;P&gt;num(Time#(OBE, 'h.mm;ss'))*24*3600 as OBE_Time,&lt;/P&gt;&lt;P&gt;num(Time#(OBK, 'h.mm;ss'))*24*3600 as OBK_Time,&lt;/P&gt;&lt;P&gt;num(Time#(OBS, 'h.mm;ss'))*24*3600 as OBS_Time&lt;/P&gt;&lt;P&gt;FROM ...;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give me for example;&lt;/P&gt;&lt;P&gt;59,99999893892&lt;/P&gt;&lt;P&gt;120,0000003916&lt;/P&gt;&lt;P&gt;360,0000117347&lt;/P&gt;&lt;P&gt;That i guess is the right number of seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 08:36:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488734#M182628</guid>
      <dc:creator />
      <dc:date>2014-01-10T08:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert h:mm;ss to seconds</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488735#M182629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use something like this&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;evaluate ( subfield(Yourfield,'.',1) *60*60&amp;nbsp; + subfield(Yourfield,';',2) * 60 + subfield(Yourfield,';',3)&amp;nbsp; )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 08:47:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-h-mm-ss-to-seconds/m-p/488735#M182629</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-10T08:47:59Z</dc:date>
    </item>
  </channel>
</rss>

