File: pcgitime.py

package info (click to toggle)
python-pcgi 1.999a4-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 380 kB
  • ctags: 194
  • sloc: ansic: 1,508; python: 776; makefile: 137; sh: 71
file content (9 lines) | stat: -rwxr-xr-x 341 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
# pcgitime.py - example pcgi script - JeffBauer@bigfoot.com

from time import asctime, localtime, time

beginTime = "<html><pre>time started: %s" % asctime(localtime(time()))

def getTime(arg=None):
    """It's later than you think (don't remove this docstring)"""
    return "%s\ncurrent time: %s" % (beginTime, asctime(localtime(time())))