<?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 Converting a millisecond value to a Time value in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286491#M1200328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys!&lt;/P&gt;&lt;P&gt;I'm new on forum and I would like a bit help about milliseconds.&lt;/P&gt;&lt;P&gt;How may I convert it to Date?&lt;/P&gt;&lt;P&gt;I used&lt;BR /&gt;Date(CREATEDTIME/1000/60/60/24, 'DD/MM/YYYY')&lt;BR /&gt;The result is a date, but from the year 1940.&lt;/P&gt;&lt;P&gt;I'm looking for Gregorian Calendar, am I on the rigth way or do you know a better solution?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Dec 2010 14:57:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-12-03T14:57:05Z</dc:date>
    <item>
      <title>Converting a millisecond value to a Time value</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286485#M1200322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm hoping this has an easy answer I'm not seeing but here goes.&lt;/P&gt;&lt;P&gt;I'm trying to convert a millisecond value field from a table to show as a time value, for example 7,200,000 milliseconds to show as 02:00:00 and 8,100,000 to show as 02:15:00.&lt;/P&gt;&lt;P&gt;I'm looking through all of the functions and can't seem to find an easy way to do this with hundreds of records in this table, all having this issue. I know I need to put something in the load statement but I don't know what.&lt;/P&gt;&lt;P&gt;Can anyone tell me if there is an easy way to do this?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 16:42:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286485#M1200322</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2010-11-05T16:42:35Z</dc:date>
    </item>
    <item>
      <title>Converting a millisecond value to a Time value</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286486#M1200323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&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;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;=&lt;/P&gt;&lt;P&gt;&lt;B&gt;time&lt;/B&gt;(100+(2700000/(1000*60*60*60*9)),'hh:mm:ss') &lt;B&gt;&lt;/B&gt;&lt;/P&gt;&lt;P style="font-weight: bold"&gt;replace 2700000 with your values name..&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;B&gt;&lt;/B&gt;&lt;P style="font-weight: bold"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 16:57:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286486#M1200323</guid>
      <dc:creator />
      <dc:date>2010-11-05T16:57:24Z</dc:date>
    </item>
    <item>
      <title>Converting a millisecond value to a Time value</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286487#M1200324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will work:&lt;BR /&gt;=time(MillisecondsField/(1000*60*60*24),'hh:mm:ss')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 19:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286487#M1200324</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-05T19:48:41Z</dc:date>
    </item>
    <item>
      <title>Converting a millisecond value to a Time value</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286488#M1200325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is a duration instead of a time of day, you'd want to use the interval() function instead of the time() function. Time() is a time of day, so is limited to 24 hours. Even if you're never more than 24 hours, I think it's more correct to use interval(), even if they'd be functionally equivalent in that case. Also, I'm thinking you want to round to the nearest second.&lt;/P&gt;&lt;P&gt;So modifying Jesper's solution a little:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;interval(round(YourMillisecondsField/1000)/(60*60*24),'hh:mm:ss') as YourNewField&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 19:54:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286488#M1200325</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2010-11-05T19:54:11Z</dc:date>
    </item>
    <item>
      <title>Converting a millisecond value to a Time value</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286489#M1200326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agree, it is logically correct and relaible for any number&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 19:59:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286489#M1200326</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-11-05T19:59:10Z</dc:date>
    </item>
    <item>
      <title>Converting a millisecond value to a Time value</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286490#M1200327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks all for the suggestions! Using Interval does indeed give me what I need, this will no doubt make my reports a bit more readable.&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Nov 2010 09:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286490#M1200327</guid>
      <dc:creator>chris_johnson</dc:creator>
      <dc:date>2010-11-08T09:37:57Z</dc:date>
    </item>
    <item>
      <title>Converting a millisecond value to a Time value</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286491#M1200328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys!&lt;/P&gt;&lt;P&gt;I'm new on forum and I would like a bit help about milliseconds.&lt;/P&gt;&lt;P&gt;How may I convert it to Date?&lt;/P&gt;&lt;P&gt;I used&lt;BR /&gt;Date(CREATEDTIME/1000/60/60/24, 'DD/MM/YYYY')&lt;BR /&gt;The result is a date, but from the year 1940.&lt;/P&gt;&lt;P&gt;I'm looking for Gregorian Calendar, am I on the rigth way or do you know a better solution?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Dec 2010 14:57:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286491#M1200328</guid>
      <dc:creator />
      <dc:date>2010-12-03T14:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Converting a millisecond value to a Time value</title>
      <link>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286492#M1200329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just add the offset (in days) at which your database time reference is set....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that would make :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time from DB =&amp;gt; day 1 month 2 year 1 to be :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;time +offset =&amp;gt; 1/02/2012&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;given offset is makedate(2012)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2012 20:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Converting-a-millisecond-value-to-a-Time-value/m-p/286492#M1200329</guid>
      <dc:creator />
      <dc:date>2012-07-04T20:19:25Z</dc:date>
    </item>
  </channel>
</rss>

