changeset 50372:164b6c4878b8 stable

doc: format argument for date uses strftime format string (issue6818)
author Joerg Sonnenberger <joerg@bec.de>
date Wed, 31 May 2023 22:36:50 +0200
parents 7b723217d368
children 553865308b15
files mercurial/templatefuncs.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templatefuncs.py	Thu Apr 20 11:23:45 2023 +0200
+++ b/mercurial/templatefuncs.py	Wed May 31 22:36:50 2023 +0200
@@ -50,8 +50,8 @@
 
 @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