<?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 Feature Class Creation Date Timestamp in File Geodatabase API Questions</title>
    <link>https://community.esri.com/t5/file-geodatabase-api-questions/feature-class-creation-date-timestamp/m-p/1122280#M1201</link>
    <description>&lt;P&gt;I am automating backups at work for individuals, but the compressed file is coming up with the date that the backup folder was created, and not the date when the feature class was created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;folder_path = input("Please enter the file location to store the backups: ")&lt;BR /&gt;num_items = int(input("How many items do you want to back up? "))&lt;BR /&gt;query_string = "type:Feature Service, owner:{}".format(username)&lt;BR /&gt;items = gis.content.search(query=query_string, max_items=num_items, sort_field='modifed', sort_order='desc')&lt;BR /&gt;print(str(len(items)) + " items will be backed up to " + folder_path +". See the list below:")&lt;BR /&gt;items&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;created_timestamp = os.path.getctime(folder_path)&lt;BR /&gt;print (datetime.datetime.fromtimestamp(created_timestamp))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i put "str(items)" instead of "folder_path" (because it said items can't be a list, it has to be a string) it tells me:&lt;/P&gt;&lt;PRE&gt;The system cannot find the path specified&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So does anybody know how to modify this code in order to get the creation date for the feature class?&lt;/P&gt;</description>
    <pubDate>Thu, 02 Dec 2021 17:52:27 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2021-12-02T17:52:27Z</dc:date>
    <item>
      <title>Feature Class Creation Date Timestamp</title>
      <link>https://community.esri.com/t5/file-geodatabase-api-questions/feature-class-creation-date-timestamp/m-p/1122280#M1201</link>
      <description>&lt;P&gt;I am automating backups at work for individuals, but the compressed file is coming up with the date that the backup folder was created, and not the date when the feature class was created.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;folder_path = input("Please enter the file location to store the backups: ")&lt;BR /&gt;num_items = int(input("How many items do you want to back up? "))&lt;BR /&gt;query_string = "type:Feature Service, owner:{}".format(username)&lt;BR /&gt;items = gis.content.search(query=query_string, max_items=num_items, sort_field='modifed', sort_order='desc')&lt;BR /&gt;print(str(len(items)) + " items will be backed up to " + folder_path +". See the list below:")&lt;BR /&gt;items&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;created_timestamp = os.path.getctime(folder_path)&lt;BR /&gt;print (datetime.datetime.fromtimestamp(created_timestamp))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i put "str(items)" instead of "folder_path" (because it said items can't be a list, it has to be a string) it tells me:&lt;/P&gt;&lt;PRE&gt;The system cannot find the path specified&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So does anybody know how to modify this code in order to get the creation date for the feature class?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Dec 2021 17:52:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/file-geodatabase-api-questions/feature-class-creation-date-timestamp/m-p/1122280#M1201</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-12-02T17:52:27Z</dc:date>
    </item>
  </channel>
</rss>

