<?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 do I calculate elapsed time difference between timestamps that are from different timezones? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357667#M65319</link>
    <description>&lt;P&gt;Please let me know if the answer was useful for you. If it was, accept it and upvote. If not, give us more input so we can help you with that&lt;/P&gt;</description>
    <pubDate>Wed, 21 Mar 2018 17:21:47 GMT</pubDate>
    <dc:creator>tiagofbmm</dc:creator>
    <dc:date>2018-03-21T17:21:47Z</dc:date>
    <item>
      <title>How do I calculate elapsed time difference between timestamps that are from different timezones?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357661#M65313</link>
      <description>&lt;P&gt;I have a timestamp in EST and one from any other non-EST timezone how do I calculate the elapsed time between them both?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 21:59:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357661#M65313</guid>
      <dc:creator>timothytruax</dc:creator>
      <dc:date>2018-03-16T21:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate elapsed time difference between timestamps that are from different timezones?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357662#M65314</link>
      <description>&lt;P&gt;Use the epoch of both your timestamps. As it is universal, you'll get accurate and correct results.&lt;/P&gt;

&lt;P&gt;Basically you just need to make sure they are both timestamps and do one minus the other because splunk automatically interprets then as epoch time &lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 02:25:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357662#M65314</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-17T02:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate elapsed time difference between timestamps that are from different timezones?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357663#M65315</link>
      <description>&lt;P&gt;Can anyone show me an example?  Should I append the TimeZone code "EST" or "CST" or "PST" as the suffix on the TIMESTAMP I am using STRPTIME to convert?   &lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 16:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357663#M65315</guid>
      <dc:creator>timothytruax</dc:creator>
      <dc:date>2018-03-17T16:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate elapsed time difference between timestamps that are from different timezones?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357664#M65316</link>
      <description>&lt;P&gt;Hey&lt;/P&gt;

&lt;P&gt;Test this solution. You just need to figure out which are the TZ syntax Splunk allows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults 
    | eval t1="2017-03-15 10:00:00 CET" , t2="2017-03-15 10:00:00 GMT"
    | eval t1=strptime(t1,"%Y-%m-%d %H:%M:%S %Z") , t2=strptime(t2,"%Y-%m-%d %H:%M:%S %Z") 
| eval t3=t2-t1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then do the difference of the two fields and voilá&lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 17:30:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357664#M65316</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-17T17:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate elapsed time difference between timestamps that are from different timezones?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357665#M65317</link>
      <description>&lt;P&gt;This looks like it should work &amp;amp; thank you for your answers.   I was not sure  how to pass the timezone, however your answer is very illustrative and I appreciate it.&lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 20:56:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357665#M65317</guid>
      <dc:creator>timothytruax</dc:creator>
      <dc:date>2018-03-17T20:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate elapsed time difference between timestamps that are from different timezones?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357666#M65318</link>
      <description>&lt;P&gt;No problem. If the answer is correct please don't forget to upvote it and accept &lt;/P&gt;</description>
      <pubDate>Sat, 17 Mar 2018 21:17:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357666#M65318</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-17T21:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate elapsed time difference between timestamps that are from different timezones?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357667#M65319</link>
      <description>&lt;P&gt;Please let me know if the answer was useful for you. If it was, accept it and upvote. If not, give us more input so we can help you with that&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 17:21:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357667#M65319</guid>
      <dc:creator>tiagofbmm</dc:creator>
      <dc:date>2018-03-21T17:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I calculate elapsed time difference between timestamps that are from different timezones?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357668#M65320</link>
      <description>&lt;P&gt;Absolutely!!  Thanks again.   I'm new to this and I am upvoting it now.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 17:27:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-I-calculate-elapsed-time-difference-between-timestamps/m-p/357668#M65320</guid>
      <dc:creator>timothytruax</dc:creator>
      <dc:date>2018-03-21T17:27:05Z</dc:date>
    </item>
  </channel>
</rss>

