code: def get_modification_datetime(filepath):
      
      import tzlocal
      timezone = tzlocal.get_localzone()
      mtime = datetime.fromtimestamp(os.path.getmtime(filepath))
      return mtime.replace(tzinfo=timezone)
docs: Get the datetime that a file was last modified.
  
      Parameters
      ----------
      filepath : str
  
      Returns
      -------
      modification_datetime : datetime.datetime