<?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: How to get the time diffrence in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/How-to-get-the-time-diffrence/m-p/565016#M12968</link>
    <description>&lt;P&gt;I used diff=(B-A) and then diff=A-B nothing worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Aug 2021 09:48:42 GMT</pubDate>
    <dc:creator>9198459056</dc:creator>
    <dc:date>2021-08-27T09:48:42Z</dc:date>
    <item>
      <title>How to get the time diffrence</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-the-time-diffrence/m-p/565014#M12967</link>
      <description>&lt;P&gt;I have 2 time A anb B is in HH:MM:SS format ..then how to get the difference of A and B in same format&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 09:47:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-the-time-diffrence/m-p/565014#M12967</guid>
      <dc:creator>9198459056</dc:creator>
      <dc:date>2021-08-27T09:47:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the time diffrence</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-the-time-diffrence/m-p/565016#M12968</link>
      <description>&lt;P&gt;I used diff=(B-A) and then diff=A-B nothing worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 09:48:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-the-time-diffrence/m-p/565016#M12968</guid>
      <dc:creator>9198459056</dc:creator>
      <dc:date>2021-08-27T09:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the time diffrence</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-the-time-diffrence/m-p/565017#M12969</link>
      <description>&lt;P&gt;i asked so many questions but till now did not the single answer of any of my question&lt;span class="lia-unicode-emoji" title=":face_with_rolling_eyes:"&gt;🙄&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 09:49:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-the-time-diffrence/m-p/565017#M12969</guid>
      <dc:creator>9198459056</dc:creator>
      <dc:date>2021-08-27T09:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the time diffrence</title>
      <link>https://community.splunk.com/t5/Alerting/How-to-get-the-time-diffrence/m-p/565037#M12970</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/234951"&gt;@9198459056&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You need to convert time to epoch format for calculation. You can use the below options;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Difference is duration format;
eval diff=tostring(round(strptime(A,"%H:%M:%S")-strptime(B,"%H:%M:%S")),"duration")

Difference in seconds;
eval diff=round(strptime(A,"%H:%M:%S")-strptime(B,"%H:%M:%S"))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2021 10:46:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/How-to-get-the-time-diffrence/m-p/565037#M12970</guid>
      <dc:creator>scelikok</dc:creator>
      <dc:date>2021-08-27T10:46:11Z</dc:date>
    </item>
  </channel>
</rss>

