<?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: TimeFilter Class in Python API 1.4.0? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/timefilter-class-in-python-api-1-4-0/m-p/809544#M2412</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Rohit!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Mar 2018 14:16:44 GMT</pubDate>
    <dc:creator>RianCrowley1</dc:creator>
    <dc:date>2018-03-15T14:16:44Z</dc:date>
    <item>
      <title>TimeFilter Class in Python API 1.4.0?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/timefilter-class-in-python-api-1-4-0/m-p/809542#M2410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table.query method supposedly has a TimeFilter parameter, but no definition of TimeFilter object is provided in the documentation.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know how to create a TimeFilter object to supply to Table.query()?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.toc.html#arcgis.features.Table.query"&gt;https://esri.github.io/arcgis-python-api/apidoc/html/arcgis.features.toc.html#arcgis.features.Table.query&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;time_filter - a TimeFilter object where either the start timeor start and end time are defined to limit the search results for a given time. The values in the timeFilter should be as UTC timestampes in milliseconds. No checking occurs to see if they are in the right format.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2018 21:21:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/timefilter-class-in-python-api-1-4-0/m-p/809542#M2410</guid>
      <dc:creator>RianCrowley1</dc:creator>
      <dc:date>2018-03-14T21:21:16Z</dc:date>
    </item>
    <item>
      <title>Re: TimeFilter Class in Python API 1.4.0?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/timefilter-class-in-python-api-1-4-0/m-p/809543#M2411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can pass in a dict with this format:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;{'time': '1510704000000,1514764800000'}

&lt;/PRE&gt;&lt;P&gt;Here is an example you can use to construct this dict:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;from datetime import datetime&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;import time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;timerange = [datetime(2017, 11, 15), datetime(2018, 1, 1)]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;starttime = int(time.mktime((timerange[0]).timetuple()) * 1000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;endtime = int(time.mktime((timerange[1]).timetuple()) * 1000)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;time_filter = {'time' : "%s,%s" % (starttime, endtime)}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:28:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/timefilter-class-in-python-api-1-4-0/m-p/809543#M2411</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2021-12-12T09:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: TimeFilter Class in Python API 1.4.0?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/timefilter-class-in-python-api-1-4-0/m-p/809544#M2412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Rohit!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Mar 2018 14:16:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/timefilter-class-in-python-api-1-4-0/m-p/809544#M2412</guid>
      <dc:creator>RianCrowley1</dc:creator>
      <dc:date>2018-03-15T14:16:44Z</dc:date>
    </item>
  </channel>
</rss>

