<?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 Converting a text timestamp to an actual datetime object in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/converting-a-text-timestamp-to-an-actual-datetime/m-p/1082941#M43752</link>
    <description>&lt;P&gt;I had a point file with X, Y pairs tied to a string timestamp - unreadable by ArcPro &amp;amp; the convert time tool.&amp;nbsp; I had to write a tiny script and thought I'd share it if you find yourself in a similar spot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clintonH2A_0-1627361091347.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19401iC53608EDECD3D3EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clintonH2A_0-1627361091347.png" alt="clintonH2A_0-1627361091347.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from datetime import datetime 

def getDate(timestamp):
    datetimeObject = datetime.fromtimestamp(timestamp)
    return datetimeObject&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Jul 2021 04:45:58 GMT</pubDate>
    <dc:creator>clintonH2A</dc:creator>
    <dc:date>2021-07-27T04:45:58Z</dc:date>
    <item>
      <title>Converting a text timestamp to an actual datetime object</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/converting-a-text-timestamp-to-an-actual-datetime/m-p/1082941#M43752</link>
      <description>&lt;P&gt;I had a point file with X, Y pairs tied to a string timestamp - unreadable by ArcPro &amp;amp; the convert time tool.&amp;nbsp; I had to write a tiny script and thought I'd share it if you find yourself in a similar spot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="clintonH2A_0-1627361091347.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/19401iC53608EDECD3D3EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="clintonH2A_0-1627361091347.png" alt="clintonH2A_0-1627361091347.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from datetime import datetime 

def getDate(timestamp):
    datetimeObject = datetime.fromtimestamp(timestamp)
    return datetimeObject&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 04:45:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/converting-a-text-timestamp-to-an-actual-datetime/m-p/1082941#M43752</guid>
      <dc:creator>clintonH2A</dc:creator>
      <dc:date>2021-07-27T04:45:58Z</dc:date>
    </item>
  </channel>
</rss>

