<?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 to add a proper Datetime attribute? in ArcGIS CityEngine Questions</title>
    <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-add-a-proper-datetime-attribute/m-p/713343#M9363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a time-enabled Layer in AGP. One Date field reads: &lt;SPAN style="font-family: 'courier new', courier;"&gt;30.07.2016 00:00:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I import the layer in CE, the date is diplayed like this and seems to be a text field (can't see the data type): &lt;SPAN style="font-family: 'courier new', courier;"&gt;30 Jul 2016 00:00:00 GMT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I export this layer from CE and load it in AGP again, the time field is properly recognized. &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;However&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt; when I try to create a new time attribute in CE, it's not. I tried a simple string, Unix time, as well as different formattings and arrays, but with no success. Is this even possible (manually, or preferrably with Python)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Jul 2016 15:43:50 GMT</pubDate>
    <dc:creator>LR</dc:creator>
    <dc:date>2016-07-27T15:43:50Z</dc:date>
    <item>
      <title>How to add a proper Datetime attribute?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-add-a-proper-datetime-attribute/m-p/713343#M9363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a time-enabled Layer in AGP. One Date field reads: &lt;SPAN style="font-family: 'courier new', courier;"&gt;30.07.2016 00:00:00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I import the layer in CE, the date is diplayed like this and seems to be a text field (can't see the data type): &lt;SPAN style="font-family: 'courier new', courier;"&gt;30 Jul 2016 00:00:00 GMT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I export this layer from CE and load it in AGP again, the time field is properly recognized. &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;&lt;STRONG&gt;However&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt; when I try to create a new time attribute in CE, it's not. I tried a simple string, Unix time, as well as different formattings and arrays, but with no success. Is this even possible (manually, or preferrably with Python)?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Jul 2016 15:43:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-add-a-proper-datetime-attribute/m-p/713343#M9363</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2016-07-27T15:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a proper Datetime attribute?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-add-a-proper-datetime-attribute/m-p/713344#M9364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello L R&lt;/P&gt;&lt;P&gt;as the CE help on &lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/ui/inspector.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/ui/inspector.html"&gt;The Inspector&lt;/A&gt; states:&lt;/P&gt;&lt;P class="text"&gt;City Engine has the following types of &lt;SPAN class="resultofText"&gt;object &lt;SPAN class="resultofText"&gt;&lt;SPAN class="resultofText"&gt;attribute&lt;/SPAN&gt;s: &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;BOOL&lt;/EM&gt;&amp;nbsp; : boolean&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;FLOAT&lt;/EM&gt; : floating point value (double precision)&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;STR&lt;/EM&gt;&amp;nbsp; : character string (UTF-16 encoded)&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;BOOL[ ]&lt;/EM&gt;&amp;nbsp; : array of boolean values&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;FLOAT[ ]&lt;/EM&gt; : array of floating point values&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;STR[ ]&lt;/EM&gt;&amp;nbsp; : array of character string&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attribute type DATE is unknown to CityEngine and will be converted to STR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a quick test with a GDB in ArcGIS Pro&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="213605" alt="" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/213605_pastedImage_4.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="213606" alt="" class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/213606_pastedImage_5.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;and imported it to CityEngine 2016.0&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="213608" alt="" class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/213608_pastedImage_7.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;It also showed correctly in python.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="213611" alt="" class="image-6 jive-image" src="https://community.esri.com/legacyfs/online/213611_pastedImage_10.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;On export to GDB the dates will be mapped to their original type and show up as DATE in ArcGIS Pro again.&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="213610" alt="" class="image-5 jive-image" src="https://community.esri.com/legacyfs/online/213610_pastedImage_9.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Please also refer the CE-Help on &lt;A href="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/export/export_formats_fgdb.html" title="http://cehelp.esri.com/help/topic/com.procedural.cityengine.help/html/manual/export/export_formats_fgdb.html"&gt;Esri FileGeodatabase (FileGDB) Export&lt;/A&gt; : &lt;SPAN class="resultofText"&gt;Export object attributes:&lt;/SPAN&gt; &lt;BR /&gt;&lt;SPAN class="resultofText"&gt;&lt;STRONG&gt;Exports all object attributes as feature class fields. Information about data types and domains will be re-used, if available from an earlier File&lt;SPAN class="resultofText"&gt;GDB&lt;/SPAN&gt; import&lt;/STRONG&gt;. Array values will be ignored if the next option "&lt;SPAN class="resultofText"&gt;Export dataset relationships" is not selected and the attribute is not part of an actual relationship.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In short:&lt;/STRONG&gt; When working with GDB data types like DATE that are not natively supported in CityEngine, you have to:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;define the GDB attribute in ArcGIS Pro first.&lt;/LI&gt;&lt;LI&gt;do a GDB import in CityEngine&lt;/LI&gt;&lt;LI&gt;change the attribute according to the formatting convention&lt;/LI&gt;&lt;LI&gt;on GDB export from CityEngine the attribute value will be mapped back to its original type&lt;/LI&gt;&lt;/OL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2016 09:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-add-a-proper-datetime-attribute/m-p/713344#M9364</guid>
      <dc:creator>ThomasFuchs</dc:creator>
      <dc:date>2016-07-28T09:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add a proper Datetime attribute?</title>
      <link>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-add-a-proper-datetime-attribute/m-p/713345#M9365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured I'd have to do either that or convert the field afterwards.. are more types planned for future releases?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2016 12:36:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-cityengine-questions/how-to-add-a-proper-datetime-attribute/m-p/713345#M9365</guid>
      <dc:creator>LR</dc:creator>
      <dc:date>2016-07-29T12:36:35Z</dc:date>
    </item>
  </channel>
</rss>

