<filename>run.py
from flask import Flask
import datetime
app = Flask(__name__)


@app.route('/')
def hello_world():
    return 'Hello world!'

@app.route('/time')
def time():
    curtime = str(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
    return curtime

app.run(host='0.0.0.0',
        port=8080,
        debug=True)


<filename>run.py
from flask import Flask
import datetime
app = Flask(__name__)


@app.route('/')
def hello_world():
    return 'Hello world!'

@app.route('/time')
def time():
    curtime = str(datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S'))
    return curtime

app.run(host='0.0.0.0',
        port=8080,
        debug=True)

