view examples/trac/wiki-macros/Timestamp.py @ 92:01d36818bb3d trunk

More performance improvements... this time for whitespace normalization and template loops.
author cmlenz
date Thu, 20 Jul 2006 23:06:36 +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