<?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 convert seconds in h:mm:ss in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223726#M76208</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surender,&lt;/P&gt;&lt;P&gt;You have to use time() function along with hh:mm:ss format in your script.&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;suppose your fieldname is timeinseconds then&lt;/P&gt;&lt;P&gt;time(timeinseconds,'hh:mm:ss') as timeinhour&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Feb 2011 09:56:06 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-02-21T09:56:06Z</dc:date>
    <item>
      <title>convert seconds in h:mm:ss</title>
      <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223722#M76204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have a field having time in Seconds, i want to convert it to h:mm:ss,&lt;/P&gt;&lt;P&gt;Please suggest the best approach&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 09:39:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223722#M76204</guid>
      <dc:creator />
      <dc:date>2011-02-21T09:39:22Z</dc:date>
    </item>
    <item>
      <title>convert seconds in h:mm:ss</title>
      <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223723#M76205</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;this might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=time(Seconds/3600,'hh:mm')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 09:46:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223723#M76205</guid>
      <dc:creator>deepakk</dc:creator>
      <dc:date>2011-02-21T09:46:33Z</dc:date>
    </item>
    <item>
      <title>convert seconds in h:mm:ss</title>
      <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223724#M76206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Deepak,&lt;/P&gt;&lt;P&gt;take an example 7270 seconds, by ur formula ..&lt;/P&gt;&lt;P&gt;=time(7270/3600,'hh:mm:ss').&lt;/P&gt;&lt;P&gt;Its giving incorrect result.&lt;/P&gt;&lt;P&gt;take it as the exmple ,, it should give 2 hours 1 min and 10 seconds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 09:51:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223724#M76206</guid>
      <dc:creator />
      <dc:date>2011-02-21T09:51:51Z</dc:date>
    </item>
    <item>
      <title>convert seconds in h:mm:ss</title>
      <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223725#M76207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this one:&lt;/P&gt;&lt;P&gt;=time(Time#(7270,'s'))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 09:55:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223725#M76207</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-21T09:55:04Z</dc:date>
    </item>
    <item>
      <title>convert seconds in h:mm:ss</title>
      <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223726#M76208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surender,&lt;/P&gt;&lt;P&gt;You have to use time() function along with hh:mm:ss format in your script.&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;suppose your fieldname is timeinseconds then&lt;/P&gt;&lt;P&gt;time(timeinseconds,'hh:mm:ss') as timeinhour&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yogesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 09:56:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223726#M76208</guid>
      <dc:creator />
      <dc:date>2011-02-21T09:56:06Z</dc:date>
    </item>
    <item>
      <title>convert seconds in h:mm:ss</title>
      <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223727#M76209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Johnnes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 10:00:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223727#M76209</guid>
      <dc:creator />
      <dc:date>2011-02-21T10:00:20Z</dc:date>
    </item>
    <item>
      <title>convert seconds in h:mm:ss</title>
      <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223728#M76210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sir,&lt;/P&gt;&lt;P&gt;what deepak said is right with a little mistake. it would be&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;B&gt;Time&lt;/B&gt;(7270/(3600*24),'hh:mm:ss')&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;&lt;/P&gt;&lt;P style="line-height:normal;margin:0in 0in 0pt;mso-layout-grid-align:none;"&gt;Regards, tresesco&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 10:01:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223728#M76210</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2011-02-21T10:01:46Z</dc:date>
    </item>
    <item>
      <title>convert seconds in h:mm:ss</title>
      <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223729#M76211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thnx .. dear Tresesco..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 10:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223729#M76211</guid>
      <dc:creator />
      <dc:date>2011-02-21T10:57:09Z</dc:date>
    </item>
    <item>
      <title>convert seconds in h:mm:ss</title>
      <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223730#M76212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had to do a similar thing. I had time in seconds and needed to convert to HH:MM:SS. Tresesco's function works and should be marked as a solution to this problem. This question is currently marked as "not answered".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the load script, I had a field called "timeinseconds". I created a new field called "hmstime". I can then do time math on this field.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;num(div(timeinseconds,3600),00) &amp;amp; ':' &amp;amp; num((div(timeinseconds,60)-(div(timeinseconds,3600)*60)),00) &amp;amp; ':' &amp;amp; num(mod(timeinseconds,60),00) as hmstime&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;On my form I put a list box with an expression as the only field to calculate the length of the selected items. &lt;/P&gt;&lt;P&gt;='Duration: ' &amp;amp; time(sum(hmstime),'hh:mm:ss')&lt;/P&gt;&lt;P&gt;Tresesco's function Time(timeinseconds/3600*24),'hh:mm:ss') worked great and was simpler than my math.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Oct 2011 21:15:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223730#M76212</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-10-11T21:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: convert seconds in h:mm:ss</title>
      <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223731#M76213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks..worked great.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 19:02:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223731#M76213</guid>
      <dc:creator>natebrunner</dc:creator>
      <dc:date>2015-08-13T19:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: convert seconds in h:mm:ss</title>
      <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223732#M76214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=interval(Interval#(7270 ,'s'),'hh:mm:ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 19:13:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223732#M76214</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-08-13T19:13:07Z</dc:date>
    </item>
    <item>
      <title>Re: convert seconds in h:mm:ss</title>
      <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223733#M76215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i‌f your seconds might equal more than 1 day, you should use interval instead of time:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interval(SecondsField/86400,'h:mm:ss')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marco&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 21:29:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223733#M76215</guid>
      <dc:creator>MarcoWedel</dc:creator>
      <dc:date>2015-08-13T21:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: convert seconds in h:mm:ss</title>
      <link>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223734#M76216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(mySeconds) / (60*60*24)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then in the Number tab, format as time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jobs a good'n &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 10:45:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/convert-seconds-in-h-mm-ss/m-p/223734#M76216</guid>
      <dc:creator>wonkymeister</dc:creator>
      <dc:date>2018-07-03T10:45:20Z</dc:date>
    </item>
  </channel>
</rss>

