code: def get_creation_datetime(filepath):
      
      if platform.system() == 'Windows':
          return datetime.fromtimestamp(os.path.getctime(filepath))
      else:
          stat = os.stat(filepath)
          try:
              return datetime.fromtimestamp(stat.st_birthtime)
          except AttributeError:
              # We're probably on Linux. No easy way to get creation dates here,
              # so we'll settle for when its content was last modified.
              return None
docs: Get the date that a file was created.
  
      Parameters
      ----------
      filepath : str
  
      Returns
      -------
      creation_datetime : datetime.datetime or None