<?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: [resolved] Tmap - Integer (with Unix epoch time) convert to Timestamp? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313698#M84530</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also facing the same issue.&lt;/P&gt;&lt;P&gt;I resolved to convert epoch time but it's giving me 1985-11-15 01:00:00 instead of 1985-11-15 00:00:00. The only difference is the hours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great if you can help me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sheetal&lt;/P&gt;</description>
    <pubDate>Thu, 23 Sep 2021 18:39:57 GMT</pubDate>
    <dc:creator>SJeshwani1618330394</dc:creator>
    <dc:date>2021-09-23T18:39:57Z</dc:date>
    <item>
      <title>[resolved] Tmap - Integer (with Unix epoch time) convert to Timestamp?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313692#M84524</link>
      <description>&lt;B&gt;I have a table with a column that is an integer data type that contains Unix epoch time data.&lt;/B&gt; 
&lt;BR /&gt;Here is a sample of the data: 
&lt;BR /&gt;1298226724 
&lt;BR /&gt;1298226722 
&lt;BR /&gt;1298226723 
&lt;BR /&gt;Using this converter: 
&lt;BR /&gt; 
&lt;A href="http://www.epochconverter.com/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.epochconverter.com/&lt;/A&gt; 
&lt;BR /&gt;I get the following: 
&lt;BR /&gt;Epoch Timestamps: 1298260810 
&lt;BR /&gt;GMT: Mon, 21 Feb 2011 04:00:10 GMT 
&lt;BR /&gt;Your timezone: Sunday, February 20, 2011 9:00:10 PM 
&lt;BR /&gt; 
&lt;B&gt;This is the code I am using for checking for nulls and then doing the conversion:&lt;/B&gt; 
&lt;BR /&gt;(row1.myTimeColumn ==null || row1.myTimeColumn =="" )?null: 
&lt;BR /&gt;(TalendDate.parseDate("yyyy-MM-dd",row1.myTimeColumn)); 
&lt;BR /&gt; 
&lt;B&gt;My Input:&lt;/B&gt;| 
&lt;B&gt;My Output:&lt;/B&gt; 
&lt;BR /&gt;1298226724|1300-02-24T00:00:00 
&lt;BR /&gt;1298226722|1300-02-22T00:00:00 
&lt;BR /&gt;1298226723|1300-02-23T00:00:00 
&lt;BR /&gt; 
&lt;B&gt;It looks like the month and the day is correct, but the year and the time don't seem to work.&lt;/B&gt; 
&lt;BR /&gt;I found these posts, but not sure what I should do differently: 
&lt;BR /&gt; 
&lt;A href="http://www.talendforge.org/forum/postgallery.php?pid=21776&amp;amp;filename=1.png" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/forum/postgallery.php?pid=21776&amp;amp;filename=1.png&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCrAzCAK" target="_blank" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Archive/Choose-between-two-tOracleConnection/td-p/179455&lt;/A&gt; 
&lt;BR /&gt; 
&lt;A href="http://www.talendforge.org/forum/viewtopic.php?pid=35672" target="_blank" rel="nofollow noopener noreferrer"&gt;http://www.talendforge.org/forum/viewtopic.php?pid=35672&lt;/A&gt;</description>
      <pubDate>Sat, 16 Nov 2024 12:59:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313692#M84524</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2024-11-16T12:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Tmap - Integer (with Unix epoch time) convert to Timestamp?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313693#M84525</link>
      <description>Hello 
&lt;BR /&gt;Try this expression on tMap: 
&lt;BR /&gt;(row1.myTimeColumn ==null || row1.myTimeColumn =="" )?null: 
&lt;BR /&gt;(new java.util.Date(Long.parseLong(row1.myTimeColumn) * 1000) ); 
&lt;BR /&gt;About how to convert Unix epoch time to human readable date in Java, see 
&lt;BR /&gt; 
&lt;A href="http://stackoverflow.com/questions/535004/unix-epoch-time-to-java-date-object" rel="nofollow noopener noreferrer"&gt;http://stackoverflow.com/questions/535004/unix-epoch-time-to-java-date-object&lt;/A&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 08 Apr 2011 02:24:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313693#M84525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-08T02:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Tmap - Integer (with Unix epoch time) convert to Timestamp?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313694#M84526</link>
      <description>That helps get me closer, just need to figure out why the hours don't work, looks like they are off by 6 hours.&lt;BR /&gt;1298226723 would be GMT: Sun, 20 Feb 2011 &lt;B&gt;18&lt;/B&gt;:32:03 GMT&lt;BR /&gt;&lt;B&gt;My Input:&lt;/B&gt;|&lt;B&gt;My Output:&lt;/B&gt;&lt;BR /&gt;2011-02-20 12:32:04|1298226724&lt;BR /&gt;2011-02-20 12:32:02|1298226722&lt;BR /&gt;2011-02-20 12:32:03|1298226723</description>
      <pubDate>Fri, 08 Apr 2011 19:52:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313694#M84526</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2011-04-08T19:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Tmap - Integer (with Unix epoch time) convert to Timestamp?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313695#M84527</link>
      <description>Shong, what do you think of this? 
&lt;BR /&gt;(row1.myTimeColumn ==null || row1.myTimeColumn =="" )?null 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;new java.util.Date((Long.parseLong(row1.myTimeColumn ) 
&lt;B&gt;+ 21600&lt;/B&gt;)*1000));</description>
      <pubDate>Fri, 08 Apr 2011 22:09:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313695#M84527</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2011-04-08T22:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Tmap - Integer (with Unix epoch time) convert to Timestamp?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313696#M84528</link>
      <description>I think the 6 hour difference is because the difference between GMT and CST in Feb 2011 was 6 hours and the server I am running Talend on is using Central time.</description>
      <pubDate>Sat, 09 Apr 2011 00:54:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313696#M84528</guid>
      <dc:creator>talendtester</dc:creator>
      <dc:date>2011-04-09T00:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Tmap - Integer (with Unix epoch time) convert to Timestamp?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313697#M84529</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;TABLE border="1"&gt; 
  &lt;TBODY&gt; 
   &lt;TR&gt; 
    &lt;TD&gt;Shong, what do you think of this?&lt;BR /&gt;(row1.myTimeColumn ==null || row1.myTimeColumn =="" )?null&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MPcz.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/157233iD1A564EF62DE3BC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MPcz.png" alt="0683p000009MPcz.png" /&gt;&lt;/span&gt;new java.util.Date((Long.parseLong(row1.myTimeColumn )&lt;B&gt;+ 21600&lt;/B&gt;)*1000));&lt;/TD&gt; 
   &lt;/TR&gt; 
  &lt;/TBODY&gt; 
 &lt;/TABLE&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;BR /&gt;You are right, you need add 6 hours if you are on CST. 
&lt;BR /&gt;Best regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 11 Apr 2011 03:32:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313697#M84529</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-11T03:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] Tmap - Integer (with Unix epoch time) convert to Timestamp?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313698#M84530</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also facing the same issue.&lt;/P&gt;&lt;P&gt;I resolved to convert epoch time but it's giving me 1985-11-15 01:00:00 instead of 1985-11-15 00:00:00. The only difference is the hours.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great if you can help me &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sheetal&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 18:39:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-Tmap-Integer-with-Unix-epoch-time-convert-to-Timestamp/m-p/2313698#M84530</guid>
      <dc:creator>SJeshwani1618330394</dc:creator>
      <dc:date>2021-09-23T18:39:57Z</dc:date>
    </item>
  </channel>
</rss>

