<?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 Epoch to UTC and then to SE or NZ timezone in tMap in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Convert-Epoch-to-UTC-and-then-to-SE-or-NZ-timezone-in-tMap/m-p/2422706#M140216</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the output string you get? what are your expected output?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shong&lt;/P&gt;</description>
    <pubDate>Fri, 23 Feb 2024 06:52:48 GMT</pubDate>
    <dc:creator>Shicong_Hong</dc:creator>
    <dc:date>2024-02-23T06:52:48Z</dc:date>
    <item>
      <title>Convert Epoch to UTC and then to SE or NZ timezone in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Epoch-to-UTC-and-then-to-SE-or-NZ-timezone-in-tMap/m-p/2422648#M140212</link>
      <description>&lt;P&gt;In an example&amp;nbsp;I have an epoch of&amp;nbsp;&lt;STRONG&gt;1708444826969&lt;/STRONG&gt; that I need convert into a UTC date and then to NZ and SE formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I have done this so far&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Convert epoch to long.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Long.parseLong(row4.time) as Var.epoch&amp;nbsp; where row4.time is my epoch string&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Convert that to UTC.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;TalendDate.formatDateInUTC("yyyy-MM-dd HH:mm:ss",new java.util.Date(Var.epoch)) as Var.utc&lt;/P&gt;
&lt;P&gt;which returns&amp;nbsp;&lt;STRONG&gt;2024-02-20 16:00:26&amp;nbsp;&lt;/STRONG&gt;which seems correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now I want to convert that UTC to NZ and SE date/times&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've tried this and its not working?&lt;/P&gt;
&lt;P&gt;TalendDate.formatDateLocale("yyyy-MM-dd HH:mm:ss",TalendDate.parseDateInUTC("yyyy-MM-dd HH:mm:ss",Var.utc) ,"SE")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help would be appricated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Bob&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 23:23:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Epoch-to-UTC-and-then-to-SE-or-NZ-timezone-in-tMap/m-p/2422648#M140212</guid>
      <dc:creator>RVeitch_84</dc:creator>
      <dc:date>2024-02-22T23:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Epoch to UTC and then to SE or NZ timezone in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Epoch-to-UTC-and-then-to-SE-or-NZ-timezone-in-tMap/m-p/2422706#M140216</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What is the output string you get? what are your expected output?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 06:52:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Epoch-to-UTC-and-then-to-SE-or-NZ-timezone-in-tMap/m-p/2422706#M140216</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-02-23T06:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Convert Epoch to UTC and then to SE or NZ timezone in tMap</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Convert-Epoch-to-UTC-and-then-to-SE-or-NZ-timezone-in-tMap/m-p/2422920#M140222</link>
      <description>&lt;P&gt;This is what is returned from this,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;TalendDate.formatDateLocale("yyyy-MM-dd HH:mm:ss",TalendDate.parseDateInUTC("yyyy-MM-dd HH:mm:ss",Var.utc) ,"SE")&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;2024-02-20 10:00:26&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should be this for Sweden:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;2024-02-20 17:00:26&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And this for New Zealand:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;2024-02-21 05:00:26&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RVeitch_84_0-1708693696188.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/160552i0D2FDB6AA6AB2EBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RVeitch_84_0-1708693696188.png" alt="RVeitch_84_0-1708693696188.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2024 13:08:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Convert-Epoch-to-UTC-and-then-to-SE-or-NZ-timezone-in-tMap/m-p/2422920#M140222</guid>
      <dc:creator>RVeitch_84</dc:creator>
      <dc:date>2024-02-23T13:08:33Z</dc:date>
    </item>
  </channel>
</rss>

