#! /usr/bin/env python import time def application(environ, start_response): # Now content type is text/html response_body=""" Time

Time

Hello world, the time is: """+time.strftime("%Y-%m-%d, %H:%M:%S")+"""

Return to home page """ response_headers = [('Content-Type', 'text/html'),('Content-Length', str(len(response_body)))] start_response('200 OK', response_headers) return [response_body]