[PATCH 1 of 2] Add an {isodatesec} template, to show seconds too
Giorgos Keramidas
keramida at ceid.upatras.gr
Mon Mar 17 12:29:51 CDT 2008
# HG changeset patch
# User Giorgos Keramidas <keramida at ceid.upatras.gr>
# Date 1205774274 -7200
# Branch keramida
# Node ID b6ecaf5b4b92e235869e9458046df01089720416
# Parent 02193e7650a30717d6d7a978435e63172d3f0399
Add an {isodatesec} template, to show seconds too.
diff --git a/mercurial/templatefilters.py b/mercurial/templatefilters.py
--- a/mercurial/templatefilters.py
+++ b/mercurial/templatefilters.py
@@ -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,
More information about the Mercurial-devel
mailing list