keyword: docstrings for additional date filters
authorChristian Ebert <blacktrash@gmx.net>
Mon, 14 Mar 2011 12:19:59 +0100
changeset 13633 20d13244f192
parent 13630 c8df759ee5ed
child 13634 15470463f932
keyword: docstrings for additional date filters
hgext/keyword.py
--- 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