changeset 13633:20d13244f192

keyword: docstrings for additional date filters
author Christian Ebert <blacktrash@gmx.net>
date Mon, 14 Mar 2011 12:19:59 +0100
parents c8df759ee5ed
children 15470463f932
files hgext/keyword.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/keyword.py	Mon Mar 14 09:20:21 2011 +0100
+++ b/hgext/keyword.py	Mon Mar 14 12:19:59 2011 +0100
@@ -110,12 +110,20 @@
 
 # date like in cvs' $Date
 def utcdate(text):
+    ''':utcdate: Date. Returns a UTC-date in this format: "2009/08/18 11:00:13".
+    '''
     return util.datestr((text[0], 0), '%Y/%m/%d %H:%M:%S')
 # date like in svn's $Date
 def svnisodate(text):
+    ''':svnisodate: Date. Returns a date in this format: "2009-08-18 13:00:13
+    +0200 (Tue, 18 Aug 2009)".
+    '''
     return util.datestr(text, '%Y-%m-%d %H:%M:%S %1%2 (%a, %d %b %Y)')
 # date like in svn's $Id
 def svnutcdate(text):
+    ''':svnutcdate: Date. Returns a UTC-date in this format: "2009-08-18
+    11:00:13Z".
+    '''
     return util.datestr((text[0], 0), '%Y-%m-%d %H:%M:%SZ')
 
 # make keyword tools accessible