<?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: i want to subtract the time with 10 minutes and want the format like this  2020-06-01T09:47:59.946Z in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296999#M218540</link>
    <description>&lt;P&gt;big thank you to you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 01 Jun 2020 13:59:25 GMT</pubDate>
    <dc:creator>renuu</dc:creator>
    <dc:date>2020-06-01T13:59:25Z</dc:date>
    <item>
      <title>i want to subtract the time with 10 minutes and want the format like this  2020-06-01T09:47:59.946Z</title>
      <link>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296972#M218521</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hi to everyone ...i want to pass the attribute in http invoked processor but the attribute which contain the date and time like 2020-06-01T09:47:59.946Z format....i want to subtract the present time with 10 min.-------&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;this expression i have seen in this community&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;${now():toNumber():minus(???):format('???')}&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;what i have to put in the place of question mark for 10 min &lt;STRONG&gt;minus ...60000??&lt;/STRONG&gt;&amp;nbsp;and for&lt;/P&gt;&lt;P&gt;format&amp;nbsp; 2020-06-01T09:47:59.946Z(+%FT%T.%3NZ&amp;nbsp; if i use this i'll get error in format )&amp;nbsp; ..... and what processor i have to use...currently i m using updateAttribute for date format&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 11:25:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296972#M218521</guid>
      <dc:creator>renuu</dc:creator>
      <dc:date>2020-06-01T11:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: i want to subtract the time with 10 minutes and want the format like this  2020-06-01T09:47:59.946Z</title>
      <link>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296979#M218525</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78219"&gt;@renuu&lt;/a&gt;&amp;nbsp; &amp;nbsp; Good morning, &amp;nbsp;the Expression Language you are looking for to create an ISO format timestamp for 10 minutes ago is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;${now():minus(600000):format("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "GMT")}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Processor Configuration:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Processor Configuration" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27721i7B4D4DE32B243448/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-06-01 at 9.50.58 AM.png" alt="Processor Configuration" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Processor Configuration&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;FlowFile Output:&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="FlowFile Output" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27722i1C83C9AA08C81785/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2020-06-01 at 9.50.24 AM.png" alt="FlowFile Output" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;FlowFile Output&lt;/span&gt;&lt;/span&gt;&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;&lt;P&gt;If this answer resolves your issue or allows you to move forward, please choose to ACCEPT this solution and close this topic. If you have further dialogue on this topic please comment here or feel free to private message me. If you have new questions related to your Use Case please create separate topic and feel free to tag me in your post. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Steven&amp;nbsp;@ DFHZ&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 13:52:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296979#M218525</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-06-01T13:52:53Z</dc:date>
    </item>
    <item>
      <title>Re: i want to subtract the time with 10 minutes and want the format like this  2020-06-01T09:47:59.946Z</title>
      <link>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296986#M218529</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks for reply ....actually we want to send this timestamp in http processor to get all the alarm which came from this timestamp...can you please suggest how to pass this timestamp in http invoked processor end point....&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="renuu_0-1591016082651.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27718i1714BCAEA7EC3DBF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="renuu_0-1591016082651.png" alt="renuu_0-1591016082651.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;here i have attached the snap ...i have first used generate flowfile processor after that in upadteAttribute processor i have calculate timestamp which you provide&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;lastTime= ${now():minus(600000):format("yyyy-MM-dd'T'HH:mm:ss'Z'", "GMT")}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;and thanks this is working ...but now i want to pass this timestamp in http processor for get request ...i have used attributtojson that convert updateAttribut processor output i have used this bec when i connected updateAttribute to evaluatejsonpath processor this processor will give error ....that why i have to used this AtrributeTOjson then i have use evaluatejsonpath to extract timestamp as an attribute bec i have to send the http get request&amp;nbsp;https://localhost:8080/api/alarm?sort-by=from-date=${lastTime} using this timestamp ...but i didn't get appropriate output ..i'll getting all alram&amp;nbsp; &amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="up.PNG" style="width: 780px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27719i01A1F7C5084FFDB6/image-size/large?v=v2&amp;amp;px=999" role="button" title="up.PNG" alt="up.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ev.PNG" style="width: 528px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/27720i6AF0EB096412C2BE/image-size/large?v=v2&amp;amp;px=999" role="button" title="ev.PNG" alt="ev.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 13:12:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296986#M218529</guid>
      <dc:creator>renuu</dc:creator>
      <dc:date>2020-06-01T13:12:46Z</dc:date>
    </item>
    <item>
      <title>Re: i want to subtract the time with 10 minutes and want the format like this  2020-06-01T09:47:59.946Z</title>
      <link>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296989#M218532</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78219"&gt;@renuu&lt;/a&gt;&amp;nbsp;this should be the correct format for a $_GET request to the service:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;https://localhost:8080/api/alarm?sort-by=from-date=${lastTime}&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;However, are you sure this is the correct Remote Url? &amp;nbsp;I see maybe an issue with sort-by=from-date=... Maybe this should be sort-by=SomeValue&amp;amp;from-date=${lastTime}. &amp;nbsp;I also&amp;nbsp;suspect the dashes (-) in the variable names as this is not a good practice in variable naming.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What is the service you are trying to get the alarm from? &amp;nbsp;If its private can you PM me the details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;There are 4&amp;nbsp;ways to pass data from NiFi to InvokeHttp:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;In the Remote Url as $_GET like above using format: ?value1=1&amp;amp;value2=2&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;In the body of the flowfile content, for example $_POST of json&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;In Cookie using "Attributes to send" (pick an existing attribute).&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;In Cookie using + (Add) property&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;Based on the service's requirements, you will need to handle invokeHttp to suit the requirements.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 13:25:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296989#M218532</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-06-01T13:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: i want to subtract the time with 10 minutes and want the format like this  2020-06-01T09:47:59.946Z</title>
      <link>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296991#M218534</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt;&amp;nbsp;the solution which you provide that give&amp;nbsp;"&lt;STRONG&gt;lastTime":"2020-06-01T12:39:13Z"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but i want the format like this &lt;FONT color="#800080"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;2020-06-01T13:17&lt;/FONT&gt;:&lt;FONT color="#FFCC00"&gt;&lt;U&gt;13.474Z&lt;/U&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;please see on yellow shed&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 13:39:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296991#M218534</guid>
      <dc:creator>renuu</dc:creator>
      <dc:date>2020-06-01T13:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: i want to subtract the time with 10 minutes and want the format like this  2020-06-01T09:47:59.946Z</title>
      <link>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296993#M218536</link>
      <description>&lt;P&gt;yes i got it ...i found it ....the problem in the date time format..could you please see on my further reply&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 13:43:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296993#M218536</guid>
      <dc:creator>renuu</dc:creator>
      <dc:date>2020-06-01T13:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: i want to subtract the time with 10 minutes and want the format like this  2020-06-01T09:47:59.946Z</title>
      <link>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296995#M218538</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/78219"&gt;@renuu&lt;/a&gt;&amp;nbsp;just add more S....&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;${now():minus(600000):format("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "GMT")}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have updated the original snippet as well...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 13:49:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296995#M218538</guid>
      <dc:creator>stevenmatison</dc:creator>
      <dc:date>2020-06-01T13:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: i want to subtract the time with 10 minutes and want the format like this  2020-06-01T09:47:59.946Z</title>
      <link>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296999#M218540</link>
      <description>&lt;P&gt;big thank you to you&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/60150"&gt;@stevenmatison&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jun 2020 13:59:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/i-want-to-subtract-the-time-with-10-minutes-and-want-the/m-p/296999#M218540</guid>
      <dc:creator>renuu</dc:creator>
      <dc:date>2020-06-01T13:59:25Z</dc:date>
    </item>
  </channel>
</rss>

