<?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 now() into strptime? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-now-into-strptime/m-p/485051#M135765</link>
    <description>&lt;P&gt;Assuming you want to convert &lt;CODE&gt;now()&lt;/CODE&gt; into text, you want &lt;CODE&gt;strftime&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval nowText = strftime(now(), "%Y-%m-%dT%H:%M:%S%Z")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 02 Mar 2020 20:58:16 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2020-03-02T20:58:16Z</dc:date>
    <item>
      <title>How to convert now() into strptime?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-now-into-strptime/m-p/485050#M135764</link>
      <description>&lt;P&gt;Does anyone knows how to do this? Im having a trouble with this convertion.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 20:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-now-into-strptime/m-p/485050#M135764</guid>
      <dc:creator>franciscof</dc:creator>
      <dc:date>2020-03-02T20:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert now() into strptime?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-now-into-strptime/m-p/485051#M135765</link>
      <description>&lt;P&gt;Assuming you want to convert &lt;CODE&gt;now()&lt;/CODE&gt; into text, you want &lt;CODE&gt;strftime&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval nowText = strftime(now(), "%Y-%m-%dT%H:%M:%S%Z")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 20:58:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-now-into-strptime/m-p/485051#M135765</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-03-02T20:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert now() into strptime?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-now-into-strptime/m-p/485052#M135766</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;| convert ctime(now())
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 02 Mar 2020 21:36:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-now-into-strptime/m-p/485052#M135766</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-03-02T21:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert now() into strptime?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-now-into-strptime/m-p/485053#M135767</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval now = now()
| fieldformat now = strftime(now, "%c")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Mar 2020 08:42:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-now-into-strptime/m-p/485053#M135767</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2020-03-03T08:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert now() into strptime?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-now-into-strptime/m-p/485054#M135768</link>
      <description>&lt;P&gt;Thank you! That worked a treat&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2020 13:56:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-now-into-strptime/m-p/485054#M135768</guid>
      <dc:creator>franciscof</dc:creator>
      <dc:date>2020-03-04T13:56:19Z</dc:date>
    </item>
  </channel>
</rss>

