<?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 time filtering in ArcGIS API for Python in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/time-filtering-in-arcgis-api-for-python/m-p/1213257#M47938</link>
    <description>&lt;P&gt;I am trying to query the layer by using time for filtering,&lt;/P&gt;&lt;P&gt;ref:&lt;SPAN&gt;(&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#featurelayer" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#featurelayer&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ArcGIS API for Python -&amp;gt; arcgis.features module -&amp;gt; FeatureLayer -&amp;gt; query()&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;It is tried that the datetime of all return data from query() are +00:00,&lt;/P&gt;&lt;P&gt;is there a way to set timezone in the query? May be in sql-92 where clause, arcgis online session configuration to set timezone, or other ways to filter (e.g.&amp;nbsp;&lt;SPAN&gt;time_filter option in query(), tried but seems failed to specify the datetime field), etc..&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 04:09:04 GMT</pubDate>
    <dc:creator>WPG03WPG03</dc:creator>
    <dc:date>2022-09-16T04:09:04Z</dc:date>
    <item>
      <title>time filtering in ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/time-filtering-in-arcgis-api-for-python/m-p/1213257#M47938</link>
      <description>&lt;P&gt;I am trying to query the layer by using time for filtering,&lt;/P&gt;&lt;P&gt;ref:&lt;SPAN&gt;(&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#featurelayer" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#featurelayer&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;ArcGIS API for Python -&amp;gt; arcgis.features module -&amp;gt; FeatureLayer -&amp;gt; query()&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;It is tried that the datetime of all return data from query() are +00:00,&lt;/P&gt;&lt;P&gt;is there a way to set timezone in the query? May be in sql-92 where clause, arcgis online session configuration to set timezone, or other ways to filter (e.g.&amp;nbsp;&lt;SPAN&gt;time_filter option in query(), tried but seems failed to specify the datetime field), etc..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 04:09:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/time-filtering-in-arcgis-api-for-python/m-p/1213257#M47938</guid>
      <dc:creator>WPG03WPG03</dc:creator>
      <dc:date>2022-09-16T04:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: time filtering in ArcGIS API for Python</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/time-filtering-in-arcgis-api-for-python/m-p/1213429#M47945</link>
      <description>&lt;P&gt;Sorry, but what's the problem here? Is it that you want to query with a different time zone, or that the time filtering isn't working somehow? When you submit a query, it will read it in on your local time.&lt;/P&gt;&lt;P&gt;From the &lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/query-feature-service-layer-.htm" target="_blank" rel="noopener"&gt;REST API docs&lt;/A&gt; (emphasis added):&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;For example, if you want to return all the records that match 1:00 p.m. on February 9, 2015, Pacific standard time, your WHERE clause would be as follows:&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;PRE&gt;where=pacific_time_date_field = DATE '2015-02-09 13:00:00'&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;Although &lt;STRONG&gt;you issue local time in your WHERE clause&lt;/STRONG&gt;, this operation &lt;STRONG&gt;always returns date values in UTC&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Fri, 16 Sep 2022 15:09:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/time-filtering-in-arcgis-api-for-python/m-p/1213429#M47945</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2022-09-16T15:09:12Z</dc:date>
    </item>
  </channel>
</rss>

