<?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 convert this time format with strptime()? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-this-time-format-with-strptime/m-p/521917#M147150</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;here is described those parameters.&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.5/SearchReference/Commontimeformatvariables" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.5/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;BR /&gt;Based on your example you should try this&amp;nbsp;&lt;/P&gt;&lt;P&gt;eval pTime = strptime (timeField, “%a %b %d %H:%M:%S %Z %Y”)&lt;/P&gt;&lt;P&gt;You must take care of GMT also as it tells time zone, even it’s meaning UTC.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 04:43:12 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2020-09-29T04:43:12Z</dc:date>
    <item>
      <title>How to convert this time format with strptime()?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-this-time-format-with-strptime/m-p/521912#M147148</link>
      <description>&lt;P&gt;I haven't found something for this time format in the docs:&lt;/P&gt;&lt;P&gt;Mon Sep 28 00:00:00 GMT 2020&lt;/P&gt;&lt;P&gt;How can I convert this with strptime()? How do I make sure the "GMT" part of the string isn't interfering?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 02:58:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-this-time-format-with-strptime/m-p/521912#M147148</guid>
      <dc:creator>Sundried</dc:creator>
      <dc:date>2020-09-29T02:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert this time format with strptime()?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-this-time-format-with-strptime/m-p/521917#M147150</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;here is described those parameters.&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.5/SearchReference/Commontimeformatvariables" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.5/SearchReference/Commontimeformatvariables&lt;/A&gt;&lt;BR /&gt;Based on your example you should try this&amp;nbsp;&lt;/P&gt;&lt;P&gt;eval pTime = strptime (timeField, “%a %b %d %H:%M:%S %Z %Y”)&lt;/P&gt;&lt;P&gt;You must take care of GMT also as it tells time zone, even it’s meaning UTC.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 04:43:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-this-time-format-with-strptime/m-p/521917#M147150</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2020-09-29T04:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert this time format with strptime()?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-this-time-format-with-strptime/m-p/521919#M147152</link>
      <description>&lt;P&gt;Depends on what you mean by interfering, but this will parse the date into GMT&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _time=strptime("Mon Sep 28 00:00:00 GMT 2020", "%a %b %d %T %Z %Y")&lt;/LI-CODE&gt;&lt;P&gt;and this will parse the date to your local time&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _time=strptime("Mon Sep 28 00:00:00 GMT 2020", "%a %b %d %T GMT %Y")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Hope this what you're after&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 04:45:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-this-time-format-with-strptime/m-p/521919#M147152</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2020-09-29T04:45:39Z</dc:date>
    </item>
  </channel>
</rss>

