File: Timestamp.py

package info (click to toggle)
trac 0.10.3-1etch4
  • links: PTS
  • area: main
  • in suites: etch
  • size: 2,740 kB
  • ctags: 2,972
  • sloc: python: 22,683; cs: 3,174; sh: 472; makefile: 10
file content (6 lines) | stat: -rw-r--r-- 178 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
"""Inserts the current time (in seconds) into the wiki page."""

import time
def execute(hdf, txt, env):
    t = time.localtime()
    return "<b>%s</b>" % time.strftime('%c', t)