<?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: Is there a conversion function for time modifiers? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-conversion-function-for-time-modifiers/m-p/223464#M65793</link>
    <description>&lt;P&gt;That's the one, thanks!&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2016 15:27:04 GMT</pubDate>
    <dc:creator>johnraftery</dc:creator>
    <dc:date>2016-02-26T15:27:04Z</dc:date>
    <item>
      <title>Is there a conversion function for time modifiers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-conversion-function-for-time-modifiers/m-p/223460#M65789</link>
      <description>&lt;P&gt;Hi, I'm using a time picker which gives you a start and end token as time modifiers (eg "-2d@d - now" for the last two days). See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/Search/Specifytimemodifiersinyoursearch"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/Search/Specifytimemodifiersinyoursearch&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Is there a function to convert the time modifier into an absolute time (ie 1456312200 - 1456482900)? I know I can put the time modifiers into the earliest and latest tags of my query, but I'm actually querying a lookup table so there is no _time field to base it on; I need to restrict the time in the query itself.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
John&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 13:58:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-conversion-function-for-time-modifiers/m-p/223460#M65789</guid>
      <dc:creator>johnraftery</dc:creator>
      <dc:date>2016-02-26T13:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a conversion function for time modifiers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-conversion-function-for-time-modifiers/m-p/223461#M65790</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Sorry I'm not too sure what you are referring to.&lt;BR /&gt;
Please take a look at the relative_time() function and let me know if that's what you are looking:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.3.3/SearchReference/Commonevalfunctions#Date_and_Time_functions"&gt;http://docs.splunk.com/Documentation/Splunk/6.3.3/SearchReference/Commonevalfunctions#Date_and_Time_functions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 14:29:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-conversion-function-for-time-modifiers/m-p/223461#M65790</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-02-26T14:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a conversion function for time modifiers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-conversion-function-for-time-modifiers/m-p/223462#M65791</link>
      <description>&lt;P&gt;Try the &lt;CODE&gt;relative_time()&lt;/CODE&gt; function.  For example,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval absTime = relative_time(now(), $start$) | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 26 Feb 2016 14:33:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-conversion-function-for-time-modifiers/m-p/223462#M65791</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-02-26T14:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a conversion function for time modifiers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-conversion-function-for-time-modifiers/m-p/223463#M65792</link>
      <description>&lt;P&gt;That's the one, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 15:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-conversion-function-for-time-modifiers/m-p/223463#M65792</guid>
      <dc:creator>johnraftery</dc:creator>
      <dc:date>2016-02-26T15:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a conversion function for time modifiers?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Is-there-a-conversion-function-for-time-modifiers/m-p/223464#M65793</link>
      <description>&lt;P&gt;That's the one, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2016 15:27:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Is-there-a-conversion-function-for-time-modifiers/m-p/223464#M65793</guid>
      <dc:creator>johnraftery</dc:creator>
      <dc:date>2016-02-26T15:27:04Z</dc:date>
    </item>
  </channel>
</rss>

