File: pcgitime.py

package info (click to toggle)
python-pcgi 1.999a5-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 400 kB
  • ctags: 197
  • sloc: ansic: 1,518; python: 775; makefile: 136; sh: 71
file content (9 lines) | stat: -rw-r--r-- 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())))