<?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 how parse/unParse TimeWindowStart1 VRP in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-parse-unparse-timewindowstart1-vrp/m-p/320806#M1568</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;SPAN&gt;in &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fresources.arcgis.com%2Fen%2Fhelp%2Farcgis-rest-api%2F%23%2FVehicle_Routing_Problem_service%2F02r3000000n4000000%2F" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/#/Vehicle_Routing_Problem_service/02r3000000n4000000/&lt;/A&gt;&lt;SPAN&gt; There are fields of type TIME, but do not quite understand as I have to enter them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;orders={"features":[{"geometry":{"x":-122.51,"y":37.7724},"attributes":{"TimeWindowStart1":1355245200000,"TimeWindowEnd1":1355274000000,"MaxViolationTime1":0}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as I can know that this value corresponds date: 1355245200000?&lt;/P&gt;&lt;P&gt;and how I can convert a date format that I must enter the API: 06/25/2016 08: 15hs AM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Jun 2016 02:44:30 GMT</pubDate>
    <dc:creator>CloudingSoft</dc:creator>
    <dc:date>2016-06-26T02:44:30Z</dc:date>
    <item>
      <title>how parse/unParse TimeWindowStart1 VRP</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-parse-unparse-timewindowstart1-vrp/m-p/320806#M1568</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;SPAN&gt;in &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http%3A%2F%2Fresources.arcgis.com%2Fen%2Fhelp%2Farcgis-rest-api%2F%23%2FVehicle_Routing_Problem_service%2F02r3000000n4000000%2F" rel="nofollow" target="_blank"&gt;http://resources.arcgis.com/en/help/arcgis-rest-api/#/Vehicle_Routing_Problem_service/02r3000000n4000000/&lt;/A&gt;&lt;SPAN&gt; There are fields of type TIME, but do not quite understand as I have to enter them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;orders={"features":[{"geometry":{"x":-122.51,"y":37.7724},"attributes":{"TimeWindowStart1":1355245200000,"TimeWindowEnd1":1355274000000,"MaxViolationTime1":0}}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as I can know that this value corresponds date: 1355245200000?&lt;/P&gt;&lt;P&gt;and how I can convert a date format that I must enter the API: 06/25/2016 08: 15hs AM?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Jun 2016 02:44:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-parse-unparse-timewindowstart1-vrp/m-p/320806#M1568</guid>
      <dc:creator>CloudingSoft</dc:creator>
      <dc:date>2016-06-26T02:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: how parse/unParse TimeWindowStart1 VRP</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-parse-unparse-timewindowstart1-vrp/m-p/320807#M1569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The time used is epoch time (or Unix time) - the number of milliseconds since 1 Jan 1970 (usually in UTC, so you may need to convert to/from local time).&amp;nbsp; Search for code that will convert to and from this time.&amp;nbsp; Here's a python sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import datetime, time
epoch_time = int(time.mktime(datetime.datetime.now().timetuple()) * 1000)
print epoch_time
print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(int(epoch_time/1000)))
my_time = 1355245200000
print time.strftime('%Y-%m-%d %H:%M:%S', time.localtime(int(my_time/1000)))
&lt;SPAN style="font-family: Consolas;"&gt;print int(time.mktime(time.strptime('2012-12-11 08:00:00','%Y-%m-%d %H:%M:%S'))* 1000)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:13:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-parse-unparse-timewindowstart1-vrp/m-p/320807#M1569</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2021-12-11T15:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: how parse/unParse TimeWindowStart1 VRP</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-parse-unparse-timewindowstart1-vrp/m-p/320808#M1570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;It was so simple to multiply by a thousand when sending dates on the api and divide by a thousand when I print dates to return the api.&lt;/P&gt;&lt;P&gt;thank you very much for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jul 2016 23:53:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-parse-unparse-timewindowstart1-vrp/m-p/320808#M1570</guid>
      <dc:creator>CloudingSoft</dc:creator>
      <dc:date>2016-07-01T23:53:56Z</dc:date>
    </item>
  </channel>
</rss>

