<?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: Convert milliseconds into HH:mm:ss in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-milliseconds-into-HH-mm-ss/m-p/2206420#M6480</link>
    <description>is this what you're looking for? 
&lt;BR /&gt;you can then format it as you wish. 
&lt;BR /&gt; 
&lt;PRE&gt;Date(long&amp;nbsp;date)&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;FONT color="#474747"&gt;&lt;FONT size="2"&gt;&lt;FONT face="'DejaVu Serif', Georgia, 'Times New Roman', Times, serif"&gt;Allocates a&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;PRE&gt;Date&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;nbsp;object and initializes it to represent the specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.</description>
    <pubDate>Wed, 30 Dec 2015 12:38:11 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-12-30T12:38:11Z</dc:date>
    <item>
      <title>Convert milliseconds into HH:mm:ss</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-milliseconds-into-HH-mm-ss/m-p/2206419#M6479</link>
      <description>Hi everyone, 
&lt;BR /&gt;I'd like to convert milliseconds ("duration" field from tStatCatcher) into a more readable format like HH:mm:ss (Date format or String). 
&lt;BR /&gt;Is there a Java method to do that easily ? Or do I have to do that with basic math formulas ? 
&lt;BR /&gt;TimeUnit does not seem to work... I tried to import java.util.concurrent.TimeUnit but Talend does not recognize it. 
&lt;BR /&gt;Thanks in advance for your help.</description>
      <pubDate>Wed, 30 Dec 2015 09:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-milliseconds-into-HH-mm-ss/m-p/2206419#M6479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-30T09:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Convert milliseconds into HH:mm:ss</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-milliseconds-into-HH-mm-ss/m-p/2206420#M6480</link>
      <description>is this what you're looking for? 
&lt;BR /&gt;you can then format it as you wish. 
&lt;BR /&gt; 
&lt;PRE&gt;Date(long&amp;nbsp;date)&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;FONT color="#474747"&gt;&lt;FONT size="2"&gt;&lt;FONT face="'DejaVu Serif', Georgia, 'Times New Roman', Times, serif"&gt;Allocates a&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; 
&lt;PRE&gt;Date&lt;/PRE&gt; 
&lt;BR /&gt; 
&lt;BR /&gt;&amp;nbsp;object and initializes it to represent the specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT.</description>
      <pubDate>Wed, 30 Dec 2015 12:38:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-milliseconds-into-HH-mm-ss/m-p/2206420#M6480</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-30T12:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Convert milliseconds into HH:mm:ss</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-milliseconds-into-HH-mm-ss/m-p/2206421#M6481</link>
      <description>Thanks for your reply. 
&lt;BR /&gt;But could you please be more specific ? 
&lt;BR /&gt;I tried to put "new Date(row3.duration)" with type : Date, pattern : "HH:mm:ss" at the output of tMap and the result is (tLogRow) : 01:00:00 (which is one hour but my job takes only 400 milliseconds so I should have 00:00:00, right ?) 
&lt;BR /&gt;What am I missing ?</description>
      <pubDate>Wed, 30 Dec 2015 14:02:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-milliseconds-into-HH-mm-ss/m-p/2206421#M6481</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-30T14:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert milliseconds into HH:mm:ss</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-milliseconds-into-HH-mm-ss/m-p/2206422#M6482</link>
      <description>May be this helps you: 
&lt;BR /&gt;int millis=1000000000; 
&lt;BR /&gt;String ris=String.format("%02d:%02d:%02d", 
&lt;BR /&gt;java.util.concurrent.TimeUnit.MILLISECONDS.toHours(millis), 
&lt;BR /&gt;java.util.concurrent.TimeUnit.MILLISECONDS.toMinutes(millis) -&amp;nbsp; 
&lt;BR /&gt;java.util.concurrent.TimeUnit.HOURS.toMinutes(java.util.concurrent.TimeUnit.MILLISECONDS.toHours(millis)), // The change is in this line 
&lt;BR /&gt;java.util.concurrent.TimeUnit.MILLISECONDS.toSeconds(millis) - 
&lt;BR /&gt;java.util.concurrent.TimeUnit.MINUTES.toSeconds(java.util.concurrent.TimeUnit.MILLISECONDS.toMinutes(millis))); 
&lt;BR /&gt;(look at 
&lt;A href="http://stackoverflow.com/questions/9027317/how-to-convert-milliseconds-to-hhmmss-format" target="_blank" rel="nofollow noopener noreferrer"&gt;How to convert milliseconds to “hh:mm:ss” format? )&lt;/A&gt;</description>
      <pubDate>Thu, 31 Dec 2015 11:23:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-milliseconds-into-HH-mm-ss/m-p/2206422#M6482</guid>
      <dc:creator>gorotman</dc:creator>
      <dc:date>2015-12-31T11:23:31Z</dc:date>
    </item>
  </channel>
</rss>

