view examples/trac/wiki-macros/Timestamp.py @ 73:1da51d718391 trunk

Some more performance tweaks.
author cmlenz
date Wed, 12 Jul 2006 18:47:39 +0000
parents 93b4dcbafd7b
children
line wrap: on
line source
"""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)
Copyright (C) 2012-2017 Edgewall Software