Add an {isodatesec} template, to show seconds too.
authorGiorgos Keramidas <keramida@ceid.upatras.gr>
Mon, 17 Mar 2008 19:17:54 +0200
changeset 6319 8999d1249171
parent 6318 308988071b90
child 6320 9a9b02bcbcf4
Add an {isodatesec} template, to show seconds too.
mercurial/templatefilters.py
--- a/mercurial/templatefilters.py	Mon Mar 17 12:41:14 2008 -0700
+++ b/mercurial/templatefilters.py	Mon Mar 17 19:17:54 2008 +0200
@@ -136,6 +136,7 @@
     "tabindent": lambda x: indent(x, '\t'),
     "hgdate": lambda x: "%d %d" % x,
     "isodate": lambda x: util.datestr(x, '%Y-%m-%d %H:%M %1%2'),
+    "isodatesec": lambda x: util.datestr(x, '%Y-%m-%d %H:%M:%S %1%2'),
     "obfuscate": obfuscate,
     "permissions": permissions,
     "person": person,