view examples/trac/wiki-macros/Timestamp.py @ 39:93b4dcbafd7b trunk

Copy Trac to main branch.
author cmlenz
date Mon, 03 Jul 2006 18:53:27 +0000
parents
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