<?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 &amp;quot;Calculating the difference in minutes between the current time and a given time.&amp;quot; in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/quot-Calculating-the-difference-in-minutes-between-the-current/m-p/701880#M116131</link>
    <description>&lt;P&gt;I'm trying to calculate the minute difference between two times&lt;BR /&gt;and get an empty field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;.........base search here.........
|end_time = 2024-09-24 08:17:13.014337+00:00
|eval end_time = strptime(end_time_epoch, "%Y:%m:%d %H:%M:%S")
|eval _time = now()
|eval time_epoch = strptime(time_epoch, "%Y:%m:%d %H:%M:%S")
|eval diff = (time_epoch-end_time)/60&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2024 05:40:20 GMT</pubDate>
    <dc:creator>Bracha</dc:creator>
    <dc:date>2024-10-15T05:40:20Z</dc:date>
    <item>
      <title>"Calculating the difference in minutes between the current time and a given time."</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/quot-Calculating-the-difference-in-minutes-between-the-current/m-p/701880#M116131</link>
      <description>&lt;P&gt;I'm trying to calculate the minute difference between two times&lt;BR /&gt;and get an empty field&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;.........base search here.........
|end_time = 2024-09-24 08:17:13.014337+00:00
|eval end_time = strptime(end_time_epoch, "%Y:%m:%d %H:%M:%S")
|eval _time = now()
|eval time_epoch = strptime(time_epoch, "%Y:%m:%d %H:%M:%S")
|eval diff = (time_epoch-end_time)/60&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 05:40:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/quot-Calculating-the-difference-in-minutes-between-the-current/m-p/701880#M116131</guid>
      <dc:creator>Bracha</dc:creator>
      <dc:date>2024-10-15T05:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculating the difference in minutes between the current time and a given time."</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/quot-Calculating-the-difference-in-minutes-between-the-current/m-p/701882#M116132</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262845"&gt;@Bracha&lt;/a&gt;&amp;nbsp;Pls check this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval end_time="2024-09-24 08:17:13.014337+00:00"
|eval end_timeepoch = strptime(end_time, "%Y-%m-%d %H:%M:%S.%6Q+00:00")
|eval _time = now()
|eval diff = (end_timeepoch-_time)/60 | table end_time end_timeepoch _time diff&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inventsekar_0-1728972499048.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/33093iEEBCAC8F3ECD4E3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="inventsekar_0-1728972499048.png" alt="inventsekar_0-1728972499048.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 06:08:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/quot-Calculating-the-difference-in-minutes-between-the-current/m-p/701882#M116132</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2024-10-15T06:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculating the difference in minutes between the current time and a given time."</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/quot-Calculating-the-difference-in-minutes-between-the-current/m-p/701885#M116133</link>
      <description>&lt;P&gt;thanks&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/80737"&gt;@inventsekar&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it solved!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 06:29:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/quot-Calculating-the-difference-in-minutes-between-the-current/m-p/701885#M116133</guid>
      <dc:creator>Bracha</dc:creator>
      <dc:date>2024-10-15T06:29:40Z</dc:date>
    </item>
    <item>
      <title>Re: "Calculating the difference in minutes between the current time and a given time."</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/quot-Calculating-the-difference-in-minutes-between-the-current/m-p/701887#M116134</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/262845"&gt;@Bracha&lt;/a&gt;&amp;nbsp;could you pls accept it as solution, thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2024 06:31:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/quot-Calculating-the-difference-in-minutes-between-the-current/m-p/701887#M116134</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2024-10-15T06:31:48Z</dc:date>
    </item>
  </channel>
</rss>

