<?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: Schedule an Arcade Expression to run each day at a specified time using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/schedule-an-arcade-expression-to-run-each-day-at-a/m-p/1011451#M59339</link>
    <description>&lt;P&gt;You'll need to get familiar with the datetime module in python.&amp;nbsp; Here are a couple of links to point you in the right direction:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.kite.com/python/answers/how-to-get-the-number-of-months-between-two-dates-in-python" target="_blank"&gt;https://www.kite.com/python/answers/how-to-get-the-number-of-months-between-two-dates-in-python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/amalgjose/c767a4846d6ecaa3b6d7" target="_blank"&gt;https://gist.github.com/amalgjose/c767a4846d6ecaa3b6d7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 21 Dec 2020 15:28:42 GMT</pubDate>
    <dc:creator>JoeBorgione</dc:creator>
    <dc:date>2020-12-21T15:28:42Z</dc:date>
    <item>
      <title>Schedule an Arcade Expression to run each day at a specified time using Python</title>
      <link>https://community.esri.com/t5/python-questions/schedule-an-arcade-expression-to-run-each-day-at-a/m-p/1010984#M59322</link>
      <description>&lt;P&gt;Hi, I am Calculating a Field with an Arcade Expression which compares the date in a given field with today’s date and provides a result in months.&amp;nbsp; The result is calculated in to an existing field “Months at Current Stage”. I can run the Arcade Expression manually but I would like to automate this in Python. Is this possible in ArcGIS online Notebook using Python? New to Python, so any help would be appreciated!&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 17:26:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/schedule-an-arcade-expression-to-run-each-day-at-a/m-p/1010984#M59322</guid>
      <dc:creator>AlenO_Farrell</dc:creator>
      <dc:date>2020-12-18T17:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule an Arcade Expression to run each day at a specified time using Python</title>
      <link>https://community.esri.com/t5/python-questions/schedule-an-arcade-expression-to-run-each-day-at-a/m-p/1010999#M59323</link>
      <description>&lt;P&gt;Mixing metaphors; Arcade and Python.&amp;nbsp; I suggest just doing it all in python and run the script as scheduled task or as you suggest a notebook.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Dec 2020 17:48:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/schedule-an-arcade-expression-to-run-each-day-at-a/m-p/1010999#M59323</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-12-18T17:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule an Arcade Expression to run each day at a specified time using Python</title>
      <link>https://community.esri.com/t5/python-questions/schedule-an-arcade-expression-to-run-each-day-at-a/m-p/1011405#M59338</link>
      <description>&lt;P&gt;Joe,&lt;/P&gt;&lt;P&gt;Thanks for the response to my question. I gather from your reply that this would be possible in Python which is great.&lt;/P&gt;&lt;P&gt;While I have the following, very simple, Arcade Expression, my difficulty is how to write a Python script that would achieve the same result.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;var startDate = Date($feature.Start_Date_of_Current_Stage);
var endDate = Date(Now());
var MACS = DateDiff(endDate, startDate, 'months');
return MACS;&lt;/LI-CODE&gt;&lt;P&gt;I am completely new to Python and this will be my first Python script, so I appreciate the help.&lt;/P&gt;&lt;P&gt;Alen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 10:51:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/schedule-an-arcade-expression-to-run-each-day-at-a/m-p/1011405#M59338</guid>
      <dc:creator>AlenO_Farrell</dc:creator>
      <dc:date>2020-12-21T10:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule an Arcade Expression to run each day at a specified time using Python</title>
      <link>https://community.esri.com/t5/python-questions/schedule-an-arcade-expression-to-run-each-day-at-a/m-p/1011451#M59339</link>
      <description>&lt;P&gt;You'll need to get familiar with the datetime module in python.&amp;nbsp; Here are a couple of links to point you in the right direction:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.kite.com/python/answers/how-to-get-the-number-of-months-between-two-dates-in-python" target="_blank"&gt;https://www.kite.com/python/answers/how-to-get-the-number-of-months-between-two-dates-in-python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://gist.github.com/amalgjose/c767a4846d6ecaa3b6d7" target="_blank"&gt;https://gist.github.com/amalgjose/c767a4846d6ecaa3b6d7&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 15:28:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/schedule-an-arcade-expression-to-run-each-day-at-a/m-p/1011451#M59339</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-12-21T15:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Schedule an Arcade Expression to run each day at a specified time using Python</title>
      <link>https://community.esri.com/t5/python-questions/schedule-an-arcade-expression-to-run-each-day-at-a/m-p/1011479#M59347</link>
      <description>&lt;P&gt;Thanks Joe,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Much appreciated. I will post my progress in the new year.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Dec 2020 16:53:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/schedule-an-arcade-expression-to-run-each-day-at-a/m-p/1011479#M59347</guid>
      <dc:creator>AlenO_Farrell</dc:creator>
      <dc:date>2020-12-21T16:53:51Z</dc:date>
    </item>
  </channel>
</rss>

