<?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: How do we find the time difference between contents of a flowfile and assign them to a attribute? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-do-we-find-the-time-difference-between-contents-of-a/m-p/282730#M210166</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70617"&gt;@Raghu_daredev&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your question states "contents of a FlowFile".&amp;nbsp; Each FlowFile only references one piece of content.&lt;BR /&gt;&lt;BR /&gt;Are you saying the content of your FlowFile contains two different timestamps in it and you would like to calculate the time difference between those two timestamps?&lt;BR /&gt;&lt;BR /&gt;If so, you would need to extract those two timestamps from the content in to unique FlowFile attributes on that FlowFile.&amp;nbsp; You could then use an UpdateAttribute processor that creates another new FlowFile attribute that contains the time difference derived using the NiFi Expression Language (EL) to do the timestamp conversion to numbers and then subtract one from the other.&lt;BR /&gt;&lt;BR /&gt;With out an example of your timestamps, it would be difficult to provide and example of a NiFi EL statement to accomplish this task.&lt;BR /&gt;&lt;BR /&gt;Matt&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2019 13:36:11 GMT</pubDate>
    <dc:creator>MattWho</dc:creator>
    <dc:date>2019-11-12T13:36:11Z</dc:date>
  </channel>
</rss>

