input: 
  from flask import Flask
  import datetime
  
  app = Flask(__name__)
  
  @app.route('/datetime')
  def get_datetime():
      return datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")
  
  if __name__ == '__main__':
      app.run()
  
  """
  What is the purpose of the function named 'get_datetime' in the provided Flask application?
  >>> The purpose of the 'get_datetime' function is to return the current date and time formatted as "YYYY-MM-DD HH:MM:SS" when accessed via the '/datetime' route.
  """
  
output:     
      current_time = datetime.datetime.now()
      formatted_time = current_time.strftime("%Y-%m-%d %H:%M:%S")
      return formatted_time
  