##// END OF EJS Templates
doc: format argument for date uses strftime format string (issue6818)
Joerg Sonnenberger -
r51436:164b6c48 stable
parent child Browse files
Show More
@@ -50,8 +50,8 b' templatefunc = registrar.templatefunc(fu'
50
50
51 @templatefunc(b'date(date[, fmt])')
51 @templatefunc(b'date(date[, fmt])')
52 def date(context, mapping, args):
52 def date(context, mapping, args):
53 """Format a date. See :hg:`help dates` for formatting
53 """Format a date. The format string uses the Python strftime format.
54 strings. The default is a Unix date format, including the timezone:
54 The default is a Unix date format, including the timezone:
55 "Mon Sep 04 15:13:13 2006 0700"."""
55 "Mon Sep 04 15:13:13 2006 0700"."""
56 if not (1 <= len(args) <= 2):
56 if not (1 <= len(args) <= 2):
57 # i18n: "date" is a keyword
57 # i18n: "date" is a keyword
General Comments 0
You need to be logged in to leave comments. Login now