comparison mercurial/help.py @ 8591:08c93b07f5ad

templatefilters: add filter to convert date to local date (issue1674) Issue1674 suggests the localdate filter be applied as default to log, but this patch only introduces the filter, not the changed default behaviour.
author Henrik Stuart <hg@hstuart.dk>
date Sun, 24 May 2009 11:41:07 +0200
parents 1320459daa91
children aea3a23151bd
comparison
equal deleted inserted replaced
8590:59acb9c7d90f 8591:08c93b07f5ad
339 - firstline: Any text. Returns the first line of text. 339 - firstline: Any text. Returns the first line of text.
340 - nonempty: Any text. Returns '(none)' if the string is empty. 340 - nonempty: Any text. Returns '(none)' if the string is empty.
341 - hgdate: Date. Returns the date as a pair of numbers: 341 - hgdate: Date. Returns the date as a pair of numbers:
342 "1157407993 25200" (Unix timestamp, timezone offset). 342 "1157407993 25200" (Unix timestamp, timezone offset).
343 - isodate: Date. Returns the date in ISO 8601 format. 343 - isodate: Date. Returns the date in ISO 8601 format.
344 - localdate: Date. Converts a date to local date.
344 - obfuscate: Any text. Returns the input text rendered as a 345 - obfuscate: Any text. Returns the input text rendered as a
345 sequence of XML entities. 346 sequence of XML entities.
346 - person: Any text. Returns the text before an email address. 347 - person: Any text. Returns the text before an email address.
347 - rfc822date: Date. Returns a date using the same format used 348 - rfc822date: Date. Returns a date using the same format used
348 in email headers. 349 in email headers.