<?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] tChronometerStart and tChronometerStop return null durations in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318275#M88635</link>
    <description>Thanks Shong for your answer. For now I'll stick to the workaround. 
&lt;BR /&gt;This issue has been reported as a bug (id 11390) on the bugtracker. 
&lt;BR /&gt;Link to the bug: 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCj3lCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/parse-date-from-string/td-p/66056&lt;/A&gt; 
&lt;BR /&gt;Thanks.</description>
    <pubDate>Thu, 28 Jan 2010 20:36:34 GMT</pubDate>
    <dc:creator>Serpico</dc:creator>
    <dc:date>2010-01-28T20:36:34Z</dc:date>
    <item>
      <title>[resolved] tChronometerStart and tChronometerStop return null durations</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318272#M88632</link>
      <description>Hi,
&lt;BR /&gt;I haven't found any post mentioning this, and I have no idea where the problem is.
&lt;BR /&gt;I am using a tChronometerStart and tChronometerStop in my job to get the start time and execution time of the job, and i am trying to access those values from a tJava component but I am always getting null values even though the tChronometerStop is displaying correctly the result on the console.
&lt;BR /&gt;I have attached a picture of my simple job. As you can see on the console, the values in the Java code are null, but the tChronometerStop is displaying correctly the result.
&lt;BR /&gt;The code in my tJava_1 component is the following:
&lt;BR /&gt;
&lt;PRE&gt;System.out.println("Duration : " + ((String)globalMap.get("tChronometerStop_1_DURATION")));&lt;BR /&gt;System.out.println("Start Time : " + ((String)globalMap.get("tChronometerStart_1_STARTTIME")));&lt;/PRE&gt;
&lt;BR /&gt;Does anyone know where the problem is and how to access those values from a Java component?
&lt;BR /&gt;Thank you in advance.
&lt;BR /&gt;
&lt;U&gt;System:&lt;/U&gt;
&lt;BR /&gt;OS: Windows XP
&lt;BR /&gt;Talend version: TIS 3.2.2r33000
&lt;BR /&gt;Generated language: Java</description>
      <pubDate>Sat, 16 Nov 2024 13:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318272#M88632</guid>
      <dc:creator>Serpico</dc:creator>
      <dc:date>2024-11-16T13:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tChronometerStart and tChronometerStop return null durations</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318273#M88633</link>
      <description>Hi,&lt;BR /&gt;Could it be a &lt;U&gt;bug&lt;/U&gt;? Was anyone able to extract those values?</description>
      <pubDate>Wed, 27 Jan 2010 18:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318273#M88633</guid>
      <dc:creator>Serpico</dc:creator>
      <dc:date>2010-01-27T18:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tChronometerStart and tChronometerStop return null durations</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318274#M88634</link>
      <description>Hello 
&lt;BR /&gt;Yes, the two global vars are not avaliable now, you can report a bug on our bugtracker. 
&lt;BR /&gt;((String)globalMap.get("tChronometerStop_1_DURATION")) 
&lt;BR /&gt;((String)globalMap.get("tChronometerStart_1_STARTTIME")) 
&lt;BR /&gt;For now, you can extract those values on tJava like this: 
&lt;BR /&gt; 
&lt;PRE&gt;long startTime=(Long)globalMap.get("tChronometerStart_1");&lt;BR /&gt;java.util.Calendar c=java.util.Calendar.getInstance();&lt;BR /&gt;c.setTimeInMillis(startTime);&lt;BR /&gt;java.util.Date date=c.getTime();&lt;BR /&gt;System.out.println("Start Time : " +TalendDate.formatDate("yyyy-MM-dd HH:mm:ss",date));&lt;BR /&gt;System.out.println("Duration : " +(((Long)globalMap.get("tChronometerStop_1"))-((Long)globalMap.get("tChronometerStart_1")))+"milliseconds");&lt;/PRE&gt; 
&lt;BR /&gt;output result: 
&lt;BR /&gt; 
&lt;PRE&gt;Start Time : 2010-01-28 11:00:17&lt;BR /&gt;Duration : 125milliseconds&lt;/PRE&gt; 
&lt;BR /&gt;Best regards 
&lt;BR /&gt; shong</description>
      <pubDate>Thu, 28 Jan 2010 03:03:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318274#M88634</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-28T03:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tChronometerStart and tChronometerStop return null durations</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318275#M88635</link>
      <description>Thanks Shong for your answer. For now I'll stick to the workaround. 
&lt;BR /&gt;This issue has been reported as a bug (id 11390) on the bugtracker. 
&lt;BR /&gt;Link to the bug: 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCj3lCAC" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/parse-date-from-string/td-p/66056&lt;/A&gt; 
&lt;BR /&gt;Thanks.</description>
      <pubDate>Thu, 28 Jan 2010 20:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318275#M88635</guid>
      <dc:creator>Serpico</dc:creator>
      <dc:date>2010-01-28T20:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tChronometerStart and tChronometerStop return null durations</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318276#M88636</link>
      <description>Hi, 
&lt;BR /&gt;Other related report at 10978.
&lt;BR /&gt;For using last components, it can be download from:
&lt;BR /&gt;
&lt;A href="http://www.talendforge.org/svn/tos/trunk/org.talend.designer.components.localprovider/components/" target="_blank" rel="nofollow noopener noreferrer"&gt;TOS Trunk component directory&lt;/A&gt;
&lt;BR /&gt;After updates for this two components, input code likes:
&lt;BR /&gt;
&lt;PRE&gt;System.out.println(new Date((Long)globalMap.get("tChronometerStart_1_STARTTIME"))); &lt;BR /&gt;System.out.println((Long)globalMap.get("tChronometerStop_1_DURATION"));&lt;/PRE&gt;
&lt;BR /&gt;Regards.</description>
      <pubDate>Fri, 29 Jan 2010 03:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318276#M88636</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-01-29T03:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tChronometerStart and tChronometerStop return null durations</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318277#M88637</link>
      <description>Hi,&lt;BR /&gt;I want to write the duration n start time into a file,&lt;BR /&gt;how can I do that?&lt;BR /&gt;right now, i'm thinking like having 2 context variables liek duration n start_time &lt;BR /&gt;which will be assigned values using tJava during run time,&lt;BR /&gt;but I don't know how to write into a file.&lt;BR /&gt;Please advice.</description>
      <pubDate>Wed, 10 Aug 2011 10:15:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318277#M88637</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-10T10:15:35Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tChronometerStart and tChronometerStop return null durations</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318278#M88638</link>
      <description>Hi I got the duration working in a job a while ago 
&lt;BR /&gt;See post 
&lt;BR /&gt; 
&lt;A href="https://community.qlik.com/s/feed/0D53p00007vCnFICA0" rel="nofollow noopener noreferrer"&gt;https://community.talend.com/t5/Design-and-Development/tChronometerStop-Readable-Time/td-p/87555&lt;/A&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Brandon</description>
      <pubDate>Wed, 10 Aug 2011 10:21:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318278#M88638</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-10T10:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] tChronometerStart and tChronometerStop return null durations</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318279#M88639</link>
      <description>Use tFixedFlowInput to create a row(s) containing your output and link it to tFileOutputDelimited</description>
      <pubDate>Thu, 11 Aug 2011 00:52:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-tChronometerStart-and-tChronometerStop-return-null/m-p/2318279#M88639</guid>
      <dc:creator>alevy</dc:creator>
      <dc:date>2011-08-11T00:52:31Z</dc:date>
    </item>
  </channel>
</rss>

