<?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 Java time stamp in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-Java-time-stamp/m-p/236606#M87771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;have some issues with getting the correct time stamp from an oracle database that uses java timestamp. This is the instructions I got from the database administrator:&lt;/P&gt;&lt;P&gt;We store the time as long in the standard unix format, which is milliseconds from 01/01/1970 GMT. When you want to convert the long to a date, you have to specify the timezone to get the correct date.&lt;/P&gt;&lt;P&gt;I have trid this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Let&lt;/B&gt; vBASE = num(makedate(1970,01,01))&lt;/P&gt;&lt;P&gt;date($(vBASE) + floor(TRANS_TIME/(24*3600*1000))) as Date&lt;/P&gt;&lt;P&gt;and this&lt;/P&gt;&lt;P&gt;date(ConvertToLocaltime(floor(TRANS_TIME/(24*3600*1000)+(&lt;B&gt;&lt;I&gt;$(vBASE)&lt;/I&gt;&lt;/B&gt;)))) &lt;B&gt;as&lt;/B&gt; Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I almost get it right but it differs on some transactions each month shift which I'm suspecting has something to do with the time zone.&lt;/P&gt;&lt;P&gt;Any suggestions as how to parse the dates correctly? The look like this :&lt;/P&gt;&lt;P&gt;1230888573653&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 May 2010 16:33:13 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-05-10T16:33:13Z</dc:date>
    <item>
      <title>Convert Java time stamp</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-Java-time-stamp/m-p/236606#M87771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;have some issues with getting the correct time stamp from an oracle database that uses java timestamp. This is the instructions I got from the database administrator:&lt;/P&gt;&lt;P&gt;We store the time as long in the standard unix format, which is milliseconds from 01/01/1970 GMT. When you want to convert the long to a date, you have to specify the timezone to get the correct date.&lt;/P&gt;&lt;P&gt;I have trid this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;Let&lt;/B&gt; vBASE = num(makedate(1970,01,01))&lt;/P&gt;&lt;P&gt;date($(vBASE) + floor(TRANS_TIME/(24*3600*1000))) as Date&lt;/P&gt;&lt;P&gt;and this&lt;/P&gt;&lt;P&gt;date(ConvertToLocaltime(floor(TRANS_TIME/(24*3600*1000)+(&lt;B&gt;&lt;I&gt;$(vBASE)&lt;/I&gt;&lt;/B&gt;)))) &lt;B&gt;as&lt;/B&gt; Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I almost get it right but it differs on some transactions each month shift which I'm suspecting has something to do with the time zone.&lt;/P&gt;&lt;P&gt;Any suggestions as how to parse the dates correctly? The look like this :&lt;/P&gt;&lt;P&gt;1230888573653&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 May 2010 16:33:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-Java-time-stamp/m-p/236606#M87771</guid>
      <dc:creator />
      <dc:date>2010-05-10T16:33:13Z</dc:date>
    </item>
  </channel>
</rss>

