<?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: Definition Queries on AGOL REST endpoint - query on time feature created in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/definition-queries-on-agol-rest-endpoint-query-on/m-p/679939#M33809</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shan, thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping to be able to consume my REST endpoint in ArcMap and filter on time in a couple of different ways. The issue I'm facing is that AGOL publishes all times in UTC whereas ArcMap uses PC time (and I can't find a way of generating UTC time in SQL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestion however did start pointing me in the right direction, and I've worked out that I can't easily do what it is I was wanting to do. So my solution has been to generate view layers at the AGOL end with the appropriate definitions, and then I'll consume these in ArcMap without have to apply any definition queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the inspiration!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Nov 2018 03:38:38 GMT</pubDate>
    <dc:creator>AnthonyCheesman1</dc:creator>
    <dc:date>2018-11-18T03:38:38Z</dc:date>
    <item>
      <title>Definition Queries on AGOL REST endpoint - query on time feature created</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/definition-queries-on-agol-rest-endpoint-query-on/m-p/679937#M33807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm currently consuming a REST endpoint from ArcGIS Online in ArcMap. I would like to be able to apply a definition query to the layer to select records that are only (for example) less than 24 hours old. Editor tracking is enabled on the feature service, so I have automatically populated fields for 'CreationDate' and 'EditDate'. These times are recorded in UTC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cannot work out the SQL syntax to make this occur - in particular how to access 'current time' (which in my circumstance will need to be current time in UTC).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone able to assist with this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 02:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/definition-queries-on-agol-rest-endpoint-query-on/m-p/679937#M33807</guid>
      <dc:creator>AnthonyCheesman1</dc:creator>
      <dc:date>2018-11-14T02:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Queries on AGOL REST endpoint - query on time feature created</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/definition-queries-on-agol-rest-endpoint-query-on/m-p/679938#M33808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you tried&amp;nbsp;&lt;A href="https://community.esri.com/docs/DOC-8191"&gt;Dynamic Date Filter&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Shan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2018 06:37:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/definition-queries-on-agol-rest-endpoint-query-on/m-p/679938#M33808</guid>
      <dc:creator>shan_sarkar</dc:creator>
      <dc:date>2018-11-14T06:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Queries on AGOL REST endpoint - query on time feature created</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/definition-queries-on-agol-rest-endpoint-query-on/m-p/679939#M33809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shan, thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping to be able to consume my REST endpoint in ArcMap and filter on time in a couple of different ways. The issue I'm facing is that AGOL publishes all times in UTC whereas ArcMap uses PC time (and I can't find a way of generating UTC time in SQL).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your suggestion however did start pointing me in the right direction, and I've worked out that I can't easily do what it is I was wanting to do. So my solution has been to generate view layers at the AGOL end with the appropriate definitions, and then I'll consume these in ArcMap without have to apply any definition queries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the inspiration!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2018 03:38:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/definition-queries-on-agol-rest-endpoint-query-on/m-p/679939#M33809</guid>
      <dc:creator>AnthonyCheesman1</dc:creator>
      <dc:date>2018-11-18T03:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Queries on AGOL REST endpoint - query on time feature created</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/definition-queries-on-agol-rest-endpoint-query-on/m-p/679940#M33810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anthony,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe arcmap has an option to select the editor time in UTC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/429843_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if you can select the time in UTC format and any updates from that point onwards will be UTC time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Shan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Nov 2018 05:53:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/definition-queries-on-agol-rest-endpoint-query-on/m-p/679940#M33810</guid>
      <dc:creator>shan_sarkar</dc:creator>
      <dc:date>2018-11-18T05:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Definition Queries on AGOL REST endpoint - query on time feature created</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/definition-queries-on-agol-rest-endpoint-query-on/m-p/679941#M33811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to use the select layer by attribute‌ to select records created today? I'm trying&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;CreationDate = timestamp NOW()&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;But getting an error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2019 15:16:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/definition-queries-on-agol-rest-endpoint-query-on/m-p/679941#M33811</guid>
      <dc:creator>AndrewHargreaves2</dc:creator>
      <dc:date>2019-02-08T15:16:37Z</dc:date>
    </item>
  </channel>
</rss>

