Docstrings for additional date filters
authorChristian Ebert <blacktrash@gmx.net>
Mon, 14 Mar 2011 12:19:59 +0100
changeset 892 d6b24cad9513
parent 891 5d6d605c93f8
child 893 24924dfb8326
Docstrings for additional date filters
hgkw/keyword.py
--- a/hgkw/keyword.py	Sat Mar 12 13:19:55 2011 +0100
+++ b/hgkw/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