<?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 java logic for date time handling as per output file in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/java-logic-for-date-time-handling-as-per-output-file/m-p/2220718#M15006</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am developing map using cMap and route in Talend .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need the java code for splitting the date in hourly basis in output file. The dates can be from any date to any date, it can be a day or more, but we need to split it in hour basis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, If input is 2020-02-24T09:00:00;2020-02-24T11:00:00 - It should make 9 to 10 in 1st line and 10 to 11 in second line of output. Sample files are given below -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The input file is like below -&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;M1;45;2020-02-24T09:00:00;2020-02-24T13:00:00;;;W&lt;BR /&gt;M1;46;2020-02-24T09:00:00;2020-02-24T13:00:00;;;W&lt;BR /&gt;M1;47;2020-02-24T09:00:00;2020-02-24T13:00:00;;;W&lt;BR /&gt;M1;48;2020-02-24T09:00:00;2020-02-24T13:00:00;;;W&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;The output file is like below -&lt;/STRONG&gt;&lt;BR /&gt;M1;45;2020-02-24T09:00:00;2020-02-24T10:00:00;;;W&lt;BR /&gt;M1;46;2020-02-24T10:00:00;2020-02-24T11:00:00;;;W&lt;BR /&gt;M1;47;2020-02-24T11:00:00;2020-02-24T12:00:00;;;W&lt;BR /&gt;M1;48;2020-02-24T12:00:00;2020-02-24T13:00:00;;;W&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 03:08:21 GMT</pubDate>
    <dc:creator>VijayTalend</dc:creator>
    <dc:date>2024-11-16T03:08:21Z</dc:date>
    <item>
      <title>java logic for date time handling as per output file</title>
      <link>https://community.qlik.com/t5/Talend-Studio/java-logic-for-date-time-handling-as-per-output-file/m-p/2220718#M15006</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am developing map using cMap and route in Talend .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need the java code for splitting the date in hourly basis in output file. The dates can be from any date to any date, it can be a day or more, but we need to split it in hour basis.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, If input is 2020-02-24T09:00:00;2020-02-24T11:00:00 - It should make 9 to 10 in 1st line and 10 to 11 in second line of output. Sample files are given below -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;The input file is like below -&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;M1;45;2020-02-24T09:00:00;2020-02-24T13:00:00;;;W&lt;BR /&gt;M1;46;2020-02-24T09:00:00;2020-02-24T13:00:00;;;W&lt;BR /&gt;M1;47;2020-02-24T09:00:00;2020-02-24T13:00:00;;;W&lt;BR /&gt;M1;48;2020-02-24T09:00:00;2020-02-24T13:00:00;;;W&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;The output file is like below -&lt;/STRONG&gt;&lt;BR /&gt;M1;45;2020-02-24T09:00:00;2020-02-24T10:00:00;;;W&lt;BR /&gt;M1;46;2020-02-24T10:00:00;2020-02-24T11:00:00;;;W&lt;BR /&gt;M1;47;2020-02-24T11:00:00;2020-02-24T12:00:00;;;W&lt;BR /&gt;M1;48;2020-02-24T12:00:00;2020-02-24T13:00:00;;;W&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:08:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/java-logic-for-date-time-handling-as-per-output-file/m-p/2220718#M15006</guid>
      <dc:creator>VijayTalend</dc:creator>
      <dc:date>2024-11-16T03:08:21Z</dc:date>
    </item>
  </channel>
</rss>

