#!/usr/bin/env python # -*- coding: utf-8 -*- import cgi, sys, time import cgitb; cgitb.enable() print "Content-Type: text/html;charset=UTF-8" print print """\ HTML/2.0 Test File: 009 (server time)

HTML/2.0 Test File: 009

60 seconds of server time, one by one.

""" for i in range(60): s = time.strftime("%Y-%m-%d %H:%M:%S") print "
", s, "
" sys.stdout.flush() time.sleep(1) print "

done.

"