<?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>question Re: Nifi Epoch conversion not working? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Epoch-conversion-not-working/m-p/239393#M85682</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/103217/asabatino.html" nodeid="103217"&gt;@A Sabatino,&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thanks for the info. Would be great if you click on 'accept' for the answer. Helps everyone to see the issue is resolved and provides you and me with a reward in terms of reputation points &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Harald&lt;/P&gt;</description>
    <pubDate>Mon, 24 Dec 2018 17:37:42 GMT</pubDate>
    <dc:creator>arald</dc:creator>
    <dc:date>2018-12-24T17:37:42Z</dc:date>
    <item>
      <title>Nifi Epoch conversion not working?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Epoch-conversion-not-working/m-p/239390#M85679</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can anyone shed some light on this, please.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;having&lt;/STRONG&gt;:&lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;attribute  'epochdatetime' Value: '1545266262' and &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;using:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;UpdateAttribute to create new variable 'converteddatetime' with &lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;${epochdatetime:format("yyyy/MM/dd HH:mm:ss.SSS'Z'", "GMT")}&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gives:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;converteddatetime' Value: '1970/01/18 21:14:26.262Z'&lt;/P&gt;&lt;P style="margin-left: 60px;"&gt;instead of:  December 20, 2018/12/20 12:37:42......&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:00:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Epoch-conversion-not-working/m-p/239390#M85679</guid>
      <dc:creator>asabatino</dc:creator>
      <dc:date>2022-09-16T14:00:33Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Epoch conversion not working?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Epoch-conversion-not-working/m-p/239391#M85680</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/103217/asabatino.html" nodeid="103217"&gt;@A Sabatino,&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am not sure why you expect the date resulting from your epoch value. So from what I can see, your value is not what you expect, the conversion is fine.&lt;/P&gt;&lt;P&gt;In the API documentation (https://nifi.apache.org/docs/nifi-docs/html/expression-language-guide.html#dates) it is desribed, that the value ist interpreted in milliseconds from 1. January 1970 00:00:00 GMT. Now when interpreting '1 545 266 262', it results in something like 17.8 days. So a time on the 18. January 1970 seems to be the correct result. To me it appears as if you lost a factor of 1000 somewhere in your epoch value.&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Harald&lt;/P&gt;&lt;BR /&gt;&lt;TABLE&gt;
	
	&lt;TBODY&gt;
&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/103217/asabatino.html" nodeid="103217"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2018 16:21:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Epoch-conversion-not-working/m-p/239391#M85680</guid>
      <dc:creator>arald</dc:creator>
      <dc:date>2018-12-24T16:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Epoch conversion not working?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Epoch-conversion-not-working/m-p/239392#M85681</link>
      <description>&lt;P&gt;Hi Harald&lt;/P&gt;&lt;P&gt;You are right - we passed in the epoch in seconds rather than milliseconds !&lt;/P&gt;&lt;P&gt;Many thanks&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aniello&lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2018 17:28:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Epoch-conversion-not-working/m-p/239392#M85681</guid>
      <dc:creator>asabatino</dc:creator>
      <dc:date>2018-12-24T17:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Epoch conversion not working?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Epoch-conversion-not-working/m-p/239393#M85682</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/103217/asabatino.html" nodeid="103217"&gt;@A Sabatino,&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thanks for the info. Would be great if you click on 'accept' for the answer. Helps everyone to see the issue is resolved and provides you and me with a reward in terms of reputation points &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Harald&lt;/P&gt;</description>
      <pubDate>Mon, 24 Dec 2018 17:37:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Epoch-conversion-not-working/m-p/239393#M85682</guid>
      <dc:creator>arald</dc:creator>
      <dc:date>2018-12-24T17:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Epoch conversion not working?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Epoch-conversion-not-working/m-p/335751#M85683</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi&amp;nbsp;&lt;A href="https://community.cloudera.com/users/103217/asabatino.html" rel="user" target="_blank"&gt;@A Sabatino,&lt;/A&gt;&lt;BR /&gt;I am also facing same issue for&amp;nbsp;&lt;/SPAN&gt;Value: '1643667489'&lt;BR /&gt;Could you please share complete syntax for&amp;nbsp;&lt;SPAN&gt;the epoch(1643667489) in second....&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 03:28:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Epoch-conversion-not-working/m-p/335751#M85683</guid>
      <dc:creator>AshuGang</dc:creator>
      <dc:date>2022-02-08T03:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: Nifi Epoch conversion not working?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Epoch-conversion-not-working/m-p/335757#M85684</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/95627"&gt;@AshuGang&lt;/a&gt;&amp;nbsp;as this is an older post, you would have a better chance of receiving a resolution by&lt;A href="“https://community.cloudera.com/t5/forums/postpage/board-id/Questions”" target="_blank"&gt; starting a new thread&lt;/A&gt;. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Feb 2022 05:56:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Nifi-Epoch-conversion-not-working/m-p/335757#M85684</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2022-02-08T05:56:09Z</dc:date>
    </item>
  </channel>
</rss>

