<?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 Converting time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Converting-time/m-p/269691#M81152</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;How to convert below into readable format ? &lt;/P&gt;

&lt;P&gt;41861.003287037&lt;BR /&gt;
41855.001458333&lt;/P&gt;

&lt;P&gt;I was trying this but did not work&lt;/P&gt;

&lt;P&gt;strftime(strptime(Close"%m/%e/%Y %l:%M:%S %p"),"%Y-%m-%d %H:%M:%S")&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Mon, 12 Oct 2015 13:53:27 GMT</pubDate>
    <dc:creator>akawacz</dc:creator>
    <dc:date>2015-10-12T13:53:27Z</dc:date>
    <item>
      <title>Converting time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-time/m-p/269691#M81152</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;How to convert below into readable format ? &lt;/P&gt;

&lt;P&gt;41861.003287037&lt;BR /&gt;
41855.001458333&lt;/P&gt;

&lt;P&gt;I was trying this but did not work&lt;/P&gt;

&lt;P&gt;strftime(strptime(Close"%m/%e/%Y %l:%M:%S %p"),"%Y-%m-%d %H:%M:%S")&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 13:53:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-time/m-p/269691#M81152</guid>
      <dc:creator>akawacz</dc:creator>
      <dc:date>2015-10-12T13:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: Converting time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-time/m-p/269692#M81153</link>
      <description>&lt;P&gt;What do those numbers represent?  They certainly are not time strings in the format shown in your strptime command.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 14:11:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-time/m-p/269692#M81153</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-10-12T14:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Converting time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-time/m-p/269693#M81154</link>
      <description>&lt;P&gt;Try something like this (assuming this is excel date )&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;strftime((Close-25569)*86400 ,"%Y-%m-%d %H:%M:%S")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Oct 2015 14:31:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-time/m-p/269693#M81154</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-12T14:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Converting time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-time/m-p/269694#M81155</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;It worked thank you. Could you explain my why we substract 25569 and multiply by 86400&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 15:31:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-time/m-p/269694#M81155</guid>
      <dc:creator>akawacz</dc:creator>
      <dc:date>2015-10-12T15:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Converting time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-time/m-p/269695#M81156</link>
      <description>&lt;P&gt;The base for excel date time is 1/1/1900 and for epoch is 1/1/1970, the 25569 is the adjustment of dates (for 70 years). Multiplication by 86400 is to convert days into seconds (excel shows in days, epoch in seconds)&lt;/P&gt;</description>
      <pubDate>Mon, 12 Oct 2015 16:41:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-time/m-p/269695#M81156</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-10-12T16:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Converting time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-time/m-p/269696#M81157</link>
      <description>&lt;P&gt;thank you so much&lt;/P&gt;</description>
      <pubDate>Tue, 13 Oct 2015 09:21:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-time/m-p/269696#M81157</guid>
      <dc:creator>akawacz</dc:creator>
      <dc:date>2015-10-13T09:21:49Z</dc:date>
    </item>
  </channel>
</rss>

