<?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: Convert field representing time to another time format in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Convert-field-representing-time-to-another-time-format/m-p/81039#M20481</link>
    <description>&lt;P&gt;perfect, thank you so much!&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2013 15:53:44 GMT</pubDate>
    <dc:creator>cosullivan66</dc:creator>
    <dc:date>2013-04-03T15:53:44Z</dc:date>
    <item>
      <title>Convert field representing time to another time format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-field-representing-time-to-another-time-format/m-p/81037#M20479</link>
      <description>&lt;P&gt;Hi Everybody,&lt;/P&gt;

&lt;P&gt;I have a field in my splunk events that is an XML field representing a videoconference session start time called ns2:sessionStartTime. An example of a field value is 2013-03-31T23:12:58.062-07:00. I want to turn this into a number (possibly Unix epoch time?) so I can perform ns2:sessionEndTime - ns2:sessionStartTime and figure out how long the session took. If there's any easier way of doing this calculation I'm all ears. Thanks for any and all help.&lt;/P&gt;

&lt;P&gt;Conor&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 20:23:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-field-representing-time-to-another-time-format/m-p/81037#M20479</guid>
      <dc:creator>cosullivan66</dc:creator>
      <dc:date>2013-04-01T20:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Convert field representing time to another time format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-field-representing-time-to-another-time-format/m-p/81038#M20480</link>
      <description>&lt;P&gt;You're probably looking for this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval sessionStartTimeEpoch = strptime(sessionStartTime, "%FT%T.%3N%z")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Apr 2013 20:41:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-field-representing-time-to-another-time-format/m-p/81038#M20480</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-04-01T20:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Convert field representing time to another time format</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-field-representing-time-to-another-time-format/m-p/81039#M20481</link>
      <description>&lt;P&gt;perfect, thank you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2013 15:53:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-field-representing-time-to-another-time-format/m-p/81039#M20481</guid>
      <dc:creator>cosullivan66</dc:creator>
      <dc:date>2013-04-03T15:53:44Z</dc:date>
    </item>
  </channel>
</rss>

