# HG changeset patch # User Joerg Sonnenberger # Date 2023-05-31 20:36:50 # Node ID 164b6c4878b829e5061ef68dae93a93a4ca32b15 # Parent 7b723217d368b93fbf0c9d81b95068a4266d61c4 doc: format argument for date uses strftime format string (issue6818) diff --git a/mercurial/templatefuncs.py b/mercurial/templatefuncs.py --- a/mercurial/templatefuncs.py +++ b/mercurial/templatefuncs.py @@ -50,8 +50,8 @@ templatefunc = registrar.templatefunc(fu @templatefunc(b'date(date[, fmt])') def date(context, mapping, args): - """Format a date. See :hg:`help dates` for formatting - strings. The default is a Unix date format, including the timezone: + """Format a date. The format string uses the Python strftime format. + The default is a Unix date format, including the timezone: "Mon Sep 04 15:13:13 2006 0700".""" if not (1 <= len(args) <= 2): # i18n: "date" is a keyword