<?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/282733#M210167</link>
    <description>&lt;P&gt;Thanks for the response Matt.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I recieve a continuous stream from one of the machines.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's say the timestamp of 1 flowfile is 10 am&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the next is 10 02 am, 10 05 am etc..&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am merging 20 such records using the merge content processor and getting a json response as a single flow file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I need to write a loop to check for the number of records and compare the timestamps vs the previous timestamp and calculate it took 2 mins for first iteration. .. ur. 10 to 10 02. Then 3 mins for next. Etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The idea is to calculate cycle time between the first flow file and the next flow file content. Since only one flow file is generated I have to merge contents of the flow file before this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if there is a better way to handle this scenario.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 12 Nov 2019 13:43:25 GMT</pubDate>
    <dc:creator>Raghu_daredev</dc:creator>
    <dc:date>2019-11-12T13:43:25Z</dc:date>
  </channel>
</rss>

