<?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: coverting time in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313911#M84724</link>
    <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;SPAN&gt;Veeranjaneyulu,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Yes your assumption is correct&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;to be more clear , i want to add moment and duration which will come from tstatscatcher component so that i can generate end time of a job.please find the attachment&amp;nbsp;for the columns.my end time should be data and timestamp&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;lmit&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsPQ"&gt;endtime.jpg&lt;/A&gt;</description>
    <pubDate>Thu, 15 Mar 2018 04:12:43 GMT</pubDate>
    <dc:creator>lmit</dc:creator>
    <dc:date>2018-03-15T04:12:43Z</dc:date>
    <item>
      <title>coverting time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313909#M84722</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am using tstatscatcher component, it has a column duration i want to calculate the end time from duration column how can i do it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I searched in forum and tried with new java.util.Date(ColumnName) , but its not giving the correct date&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;for example if i have 4000 as input its giving output as "05:30:04.000" -- its adding IST how can i handle it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance,&lt;/P&gt;
&lt;P&gt;Lmit&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 07:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313909#M84722</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2018-03-14T07:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: coverting time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313910#M84723</link>
      <description>&lt;P&gt;Hi Lmit,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the expected output for 4000.&lt;/P&gt;&lt;P&gt;i am assuming expected output should be 4000 = 01:06:40, please conform.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 15:42:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313910#M84723</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-03-14T15:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: coverting time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313911#M84724</link>
      <description>&lt;P&gt;Thanks for your reply&amp;nbsp;&lt;SPAN&gt;Veeranjaneyulu,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Yes your assumption is correct&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;to be more clear , i want to add moment and duration which will come from tstatscatcher component so that i can generate end time of a job.please find the attachment&amp;nbsp;for the columns.my end time should be data and timestamp&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;lmit&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsPQ"&gt;endtime.jpg&lt;/A&gt;</description>
      <pubDate>Thu, 15 Mar 2018 04:12:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313911#M84724</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2018-03-15T04:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: coverting time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313912#M84725</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you have some knowledge on Java , you can try tJava Component and try to convert the seconds into the HH:mm:ss format. For your reference am providing you a sample code which will convert the seconds into HH:MM:ss&amp;nbsp; time format.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int seconds = 4000;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int p1 = seconds % 60;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int p2 = seconds / 60;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int p3 = p2 % 60;&lt;BR /&gt;try{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.print("Input seconds:");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p2 = p2 / 60;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.print( p2 + ":" + p3 + ":" + p1);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;finally&lt;BR /&gt;{&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hameed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 06:38:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313912#M84725</guid>
      <dc:creator>hami1</dc:creator>
      <dc:date>2018-03-15T06:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: coverting time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313913#M84726</link>
      <description>&lt;P&gt;Hi Lmit,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If you want to derive start and end time of job, you need derive it based two records from &lt;SPAN&gt;tstatscatcher.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;+-------------------+-------------------------+&lt;BR /&gt;| key | value |&lt;BR /&gt;+-------------------+-------------------------+&lt;BR /&gt;| moment | 2018-03-15 09:12:55 |&lt;BR /&gt;| pid | c8EvWV |&lt;BR /&gt;| father_pid | c8EvWV |&lt;BR /&gt;| root_pid | c8EvWV |&lt;BR /&gt;| system_pid | 14512 |&lt;BR /&gt;| project | PRICTICE |&lt;BR /&gt;| job | job_CMS_PROCESS |&lt;BR /&gt;| job_repository_id | _O6fewAbYEei8pvE2fGbI1g |&lt;BR /&gt;| job_version | 0.1 |&lt;BR /&gt;| context | Default |&lt;BR /&gt;| origin | null |&lt;BR /&gt;| message_type | begin |&lt;BR /&gt;| message | null |&lt;BR /&gt;| duration | null |&lt;BR /&gt;+-------------------+-------------------------+&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;+-------------------+-------------------------+&lt;BR /&gt;| key | value |&lt;BR /&gt;+-------------------+-------------------------+&lt;BR /&gt;| moment | 2018-03-15 09:13:11 |&lt;BR /&gt;| pid | c8EvWV |&lt;BR /&gt;| father_pid | c8EvWV |&lt;BR /&gt;| root_pid | c8EvWV |&lt;BR /&gt;| system_pid | 14512 |&lt;BR /&gt;| project | PRICTICE |&lt;BR /&gt;| job | job_CMS_PROCESS |&lt;BR /&gt;| job_repository_id | _O6fewAbYEei8pvE2fGbI1g |&lt;BR /&gt;| job_version | 0.1 |&lt;BR /&gt;| context | Default |&lt;BR /&gt;| origin | null |&lt;BR /&gt;| message_type | end |&lt;BR /&gt;| message | success |&lt;BR /&gt;| duration | 16087 |&lt;BR /&gt;+-------------------+-------------------------+&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;If message_type begin means job start and message_type='end' means job end time.&lt;/P&gt; 
&lt;P&gt;The duration&amp;nbsp;is not in seconds, its in milliseconds.&amp;nbsp;If you want to caluclate start and end time using one record, you need to use message_type='end' record and substract duration from moment, so you will get start time of that process.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Regards,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 14:40:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313913#M84726</guid>
      <dc:creator>vboppudi</dc:creator>
      <dc:date>2018-03-15T14:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: coverting time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313914#M84727</link>
      <description>&lt;P&gt;Thanks for your replies,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;when i was clearing observing the tstatcatcher records i noticed that the begin and end records have different timestamp, the time(moment column) in the end record can be consider as end time?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you see in the attachment , for both records of same flow has a timestamp difference of one sec. so can i consider it as a end time of the job?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;lmit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LsTr"&gt;stat_endtime.jpg&lt;/A&gt;</description>
      <pubDate>Fri, 16 Mar 2018 03:19:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313914#M84727</guid>
      <dc:creator>lmit</dc:creator>
      <dc:date>2018-03-16T03:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: coverting time</title>
      <link>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313915#M84728</link>
      <description>&lt;P&gt;Yes&amp;nbsp;lmit, you can consider this as the Job Execution duration as 1 Sec(Time taken to finish the Job).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;skh&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 05:51:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/coverting-time/m-p/2313915#M84728</guid>
      <dc:creator>hami1</dc:creator>
      <dc:date>2018-03-16T05:51:01Z</dc:date>
    </item>
  </channel>
</rss>

