<?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: How to load data with date containing microseconds from file to DB in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346606#M113992</link>
    <description>I will try &amp;amp; let you know the feedback.</description>
    <pubDate>Fri, 13 Nov 2009 20:59:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-11-13T20:59:17Z</dc:date>
    <item>
      <title>How to load data with date containing microseconds from file to DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346600#M113986</link>
      <description>How to load file with field having date format having microseconds "yyyy-MM-dd HH:mm:ss.SSSSSS". The format is displayed in t_Map supports upto milliseconds.</description>
      <pubDate>Sat, 16 Nov 2024 13:42:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346600#M113986</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T13:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to load data with date containing microseconds from file to DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346601#M113987</link>
      <description>I just tested this in Talend 3.2.1 and it worked fine for me. Just update the date pattern in the tMap editor to "yyyy-MM-dd HH:mm:ss.SSSSSS" for the relevant column.</description>
      <pubDate>Fri, 30 Oct 2009 01:19:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346601#M113987</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-30T01:19:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to load data with date containing microseconds from file to DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346602#M113988</link>
      <description>Talend Version 3.2.M3_r28760. 
&lt;BR /&gt;This is the file i am trying to load into DB. I tranform the timestamp value in the file using the format "yyyy-MM-dd HH:mm:ss.SSSSSS". If you notice the value after transformation, it is truncating the digits in the microsecond part. 
&lt;BR /&gt;2009-10-30 06:53:43.553929 ==&amp;gt; 2009-10-30 07:02:56.929 (missing the milliseconds) 
&lt;BR /&gt;File: E:/projects/Talend/ph demo/test_input.lst 
&lt;BR /&gt;history_timestamp;pid 
&lt;BR /&gt;2009-10-30 06:53:43.553929;1 
&lt;BR /&gt;2009-10-20 16:33:14.386345;2 
&lt;BR /&gt;2009-10-20 16:48:16.638456;3 
&lt;BR /&gt;2009-10-20 16:48:21.704456;4 
&lt;BR /&gt;2009-10-20 16:50:45.948456;5 
&lt;BR /&gt; 
&lt;BR /&gt;mnp=# select * from scratch.table1; 
&lt;BR /&gt; history_timestamp | pid 
&lt;BR /&gt;-------------------------+----- 
&lt;BR /&gt; 2009-10-30 07:02:56.929 | 1 
&lt;BR /&gt; 2009-10-20 16:39:40.345 | 2 
&lt;BR /&gt; 2009-10-20 16:58:54.456 | 3 
&lt;BR /&gt; 2009-10-20 17:00:05.456 | 4 
&lt;BR /&gt; 2009-10-20 17:06:33.456 | 5 
&lt;BR /&gt;(5 rows) 
&lt;BR /&gt;Any help on this will be appreciated. 
&lt;BR /&gt;Thanks 
&lt;BR /&gt;Srinivas</description>
      <pubDate>Fri, 30 Oct 2009 19:00:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346602#M113988</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-10-30T19:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to load data with date containing microseconds from file to DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346603#M113989</link>
      <description>Hi Scrinivas, I haven't tried this myself, but is there a way with your select to statement print the timestamp in a specific format something like select formatdate(history_timestamp, "yyyy-MM-dd HH:mm:ss.SSSSSS")?&lt;BR /&gt;I just noticed in the example above that none of the timestamps match the input file.  Each is off. Is that expected?</description>
      <pubDate>Tue, 10 Nov 2009 19:01:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346603#M113989</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-10T19:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to load data with date containing microseconds from file to DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346604#M113990</link>
      <description>Here is the SQL output. 
&lt;BR /&gt;mnp=# select to_char(history_timestamp, 'YYYY-MM-DD HH24:MI 
&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9p6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134116iFBD5D7F21624A744/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9p6.png" alt="0683p000009M9p6.png" /&gt;&lt;/span&gt;S.US'), pid from scratch.table1; -- US Postgres format string for microseconds 
&lt;BR /&gt; to_char | pid 
&lt;BR /&gt;----------------------------+----- 
&lt;BR /&gt; 2009-10-30 07:02:56.929000 | 1 
&lt;BR /&gt; 2009-10-20 16:39:40.345000 | 2 
&lt;BR /&gt; 2009-10-20 16:58:54.456000 | 3 
&lt;BR /&gt; 2009-10-20 17:00:05.456000 | 4 
&lt;BR /&gt; 2009-10-20 17:06:33.456000 | 5 
&lt;BR /&gt;(5 rows). 
&lt;BR /&gt; 
&lt;BR /&gt;You are right the microseconds from the file doesn't match data in the table. That is the issue i am trying to resolve. 
&lt;BR /&gt;Srinivas</description>
      <pubDate>Tue, 10 Nov 2009 20:45:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346604#M113990</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-10T20:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to load data with date containing microseconds from file to DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346605#M113991</link>
      <description>You have to use a java.sql.Timestamp object to get time resolution greater than Millisecond. For example, the following code:
&lt;BR /&gt;
&lt;PRE&gt;java.sql.Timestamp t = new java.sql.Timestamp(TalendDate.parseDate("yyyy-MM-dd HH:mm:ss",ts).getTime());&lt;BR /&gt;t.setNanos(Integer.parseInt(ts.substring(ts.lastIndexOf(".") + 1)));&lt;BR /&gt;System.out.println(t);&lt;/PRE&gt;
&lt;BR /&gt;Prints out:
&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;2009-10-30 06:53:43.000553929&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Hopefully that provides some resolution to your issue.</description>
      <pubDate>Wed, 11 Nov 2009 19:09:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346605#M113991</guid>
      <dc:creator>rbaldwin</dc:creator>
      <dc:date>2009-11-11T19:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to load data with date containing microseconds from file to DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346606#M113992</link>
      <description>I will try &amp;amp; let you know the feedback.</description>
      <pubDate>Fri, 13 Nov 2009 20:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346606#M113992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-11-13T20:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to load data with date containing microseconds from file to DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346607#M113993</link>
      <description>OK to use the java timestamp in tmap, but how to use it in tPostgresqlInput ? In the schema windows, I can't choose timestamp in java type list.</description>
      <pubDate>Tue, 22 Dec 2009 16:49:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346607#M113993</guid>
      <dc:creator>_AnonymousUser</dc:creator>
      <dc:date>2009-12-22T16:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to load data with date containing microseconds from file to DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346608#M113994</link>
      <description>We are performing something similar where we bring in the timestamp from a db2 system (up to the microsecond precision) and writing it to a Teradata database using timestamp(6). The Date (java.util.Date) only gives you millisecond precision so the last 3 decimal digits are replaced with zeros. We got around this by using the "Object" Java type and "Timestamp" DB types in the schema definitions in the input, tmap and output components and it worked flawlessly. I assume the Java Type stored is probably a java.sql.Timestamp so if you need to manipulate in the tmap, you will most likely need to Java cast it. In our case, we didn't have to. We are currently using TOS 5.0.2. Hopefully the tPostgresqlOutput component behaves the same way. 
&lt;BR /&gt;Noel</description>
      <pubDate>Fri, 01 Nov 2013 15:32:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346608#M113994</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-11-01T15:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to load data with date containing microseconds from file to DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346609#M113995</link>
      <description>how would I go about using java timestamp in tMap? &lt;BR /&gt;my input is a string in the format "yyyy-MM-dd-HH.mm.ss.SSSSSS"&lt;BR /&gt;and I am trying to convert it to a date with a precision to microseconds.</description>
      <pubDate>Thu, 22 May 2014 22:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346609#M113995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-05-22T22:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to load data with date containing microseconds from file to DB</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346610#M113996</link>
      <description>Hi Everyone,
&lt;BR /&gt;Could you please help out on 1 issue regrading milliseconds...
&lt;BR /&gt;Scenario:- I want only milliseconds or count of milliseconds. suppose i have date in mm/dd/yyyy format
&lt;BR /&gt;ex - 09/12/2015. so i want milliseconds for this date.&amp;nbsp;
&lt;BR /&gt;Milliseconds should not be like&amp;nbsp;
&lt;FONT size="2"&gt;2009-10-30 06:53:43.000553929 or should not be like&amp;nbsp;&lt;/FONT&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;2009-10-30 06:53:43.553929;1&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;It should be like 2578936815....&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Waiting for your quick response...&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Thanx,&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Shri-Kul1&lt;/FONT&gt;&lt;/FONT&gt;
&lt;BR /&gt;
&lt;FONT size="1"&gt;&lt;FONT face="Verdana, Helvetica, Arial, sans-serif"&gt;Talend User.&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 09 Oct 2015 10:50:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-load-data-with-date-containing-microseconds-from-file-to/m-p/2346610#M113996</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-09T10:50:09Z</dc:date>
    </item>
  </channel>
</rss>

