<?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 How to get earliest and latest time in splunk Java SDK in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-earliest-and-latest-time-in-splunk-Java-SDK/m-p/455386#M128762</link>
    <description>&lt;P&gt;I am using Splunk Java SDK.&lt;/P&gt;

&lt;P&gt;Using the below code setting the earliest and latest time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SavedSearchDispatchArgs savedSearchDispatchArgs = new SavedSearchDispatchArgs();
savedSearchDispatchArgs.setDispatchEarliestTime(&amp;lt;starttime&amp;gt;);
savedSearchDispatchArgs.setDispatchLatestTime(&amp;lt;endtime&amp;gt;);
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to know how to get the earliest and latest time that i have set in savedSearchDispatchArgs?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Sep 2018 00:01:09 GMT</pubDate>
    <dc:creator>angelinealex</dc:creator>
    <dc:date>2018-09-13T00:01:09Z</dc:date>
    <item>
      <title>How to get earliest and latest time in splunk Java SDK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-earliest-and-latest-time-in-splunk-Java-SDK/m-p/455386#M128762</link>
      <description>&lt;P&gt;I am using Splunk Java SDK.&lt;/P&gt;

&lt;P&gt;Using the below code setting the earliest and latest time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SavedSearchDispatchArgs savedSearchDispatchArgs = new SavedSearchDispatchArgs();
savedSearchDispatchArgs.setDispatchEarliestTime(&amp;lt;starttime&amp;gt;);
savedSearchDispatchArgs.setDispatchLatestTime(&amp;lt;endtime&amp;gt;);
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to know how to get the earliest and latest time that i have set in savedSearchDispatchArgs?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 00:01:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-earliest-and-latest-time-in-splunk-Java-SDK/m-p/455386#M128762</guid>
      <dc:creator>angelinealex</dc:creator>
      <dc:date>2018-09-13T00:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get earliest and latest time in splunk Java SDK</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-earliest-and-latest-time-in-splunk-Java-SDK/m-p/455387#M128763</link>
      <description>&lt;P&gt;@angelinealex&lt;/P&gt;

&lt;P&gt;I didn't find any get method which can return already set value from SavedSearchDispatchArgs. Please check below doc.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/DocumentationStatic/JavaSDK/1.6.0/index.html?com/splunk/JobResultsArgs.html"&gt;http://docs.splunk.com/DocumentationStatic/JavaSDK/1.6.0/index.html?com/splunk/JobResultsArgs.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But you can achieve your requirement by storing these values in another custom supporting POJO. &lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 05:13:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-earliest-and-latest-time-in-splunk-Java-SDK/m-p/455387#M128763</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-09-13T05:13:36Z</dc:date>
    </item>
  </channel>
</rss>

