<?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: Unable to parse input in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-parse-input/m-p/1061038#M6115</link>
    <description>&lt;P&gt;Look at your fromTime, it's repeated for some reason.&lt;/P&gt;</description>
    <pubDate>Mon, 24 May 2021 17:19:33 GMT</pubDate>
    <dc:creator>DavidPike</dc:creator>
    <dc:date>2021-05-24T17:19:33Z</dc:date>
    <item>
      <title>Unable to parse input</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-parse-input/m-p/1061028#M6113</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I am trying to parse a date filed in YYYY-MM-DD format, get an input error??&lt;/P&gt;&lt;P&gt;The code is:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;    fromTime = 0
    while fromTime == 0:
        ###fromTime = raw_input("Start date of total requests in YYYY-MM-DD HH:MM format (e.g. 2014-05-10 14:00): ")
        ##YYYY-MM-DD HH:MM format.
        fromTime = ("2021-05-20 08:00: 2021-05-20 08:00")
        # Convert input to Python struct_time and then to Unix timestamp in ms
        try:
            fromTime = int(time.mktime(time.strptime(fromTime, '%Y-%m-%d %H:%M')) * 1000)
        except:
            print('Unable to parse input. Ensure date and time is in YYYY-MM-DD HH:MM format.')
            fromTime = 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ToTime = 2021-05-21 08:00&lt;/P&gt;&lt;P&gt;I don't get why I get the input time error??&lt;/P&gt;&lt;P&gt;Any pointers would be appreciated.&lt;/P&gt;&lt;P&gt;The error is:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Unable to parse input. Ensure date and time is in YYYY-MM-DD HH:MM format.
Unable to parse input. Ensure date and time is in YYYY-MM-DD HH:MM format.
Unable to parse input. Ensure date and time is in YYYY-MM-DD HH:MM format.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 16:47:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-parse-input/m-p/1061028#M6113</guid>
      <dc:creator>CliveSwan</dc:creator>
      <dc:date>2021-05-24T16:47:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to parse input</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-parse-input/m-p/1061038#M6115</link>
      <description>&lt;P&gt;Look at your fromTime, it's repeated for some reason.&lt;/P&gt;</description>
      <pubDate>Mon, 24 May 2021 17:19:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-parse-input/m-p/1061038#M6115</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-05-24T17:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to parse input</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-parse-input/m-p/1061712#M6122</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;It was supposed to be a variable holder, to reference the input.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Clive&lt;/P&gt;</description>
      <pubDate>Wed, 26 May 2021 11:21:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/unable-to-parse-input/m-p/1061712#M6122</guid>
      <dc:creator>CliveSwan</dc:creator>
      <dc:date>2021-05-26T11:21:34Z</dc:date>
    </item>
  </channel>
</rss>

