#!/usr/bin/env python2 import time print "Content-Type: text/html\n\n" # html markup follows timeStr = time.strftime("%c") htmlFormat = """ The Time Now

The current Central date and time is: %s

""" print htmlFormat % timeStr # see embedded %s ^ above