##// END OF EJS Templates
keyword: docstrings for additional date filters
Christian Ebert -
r13633:20d13244 default
parent child Browse files
Show More
@@ -110,12 +110,20 b' colortable = {'
110 110
111 111 # date like in cvs' $Date
112 112 def utcdate(text):
113 ''':utcdate: Date. Returns a UTC-date in this format: "2009/08/18 11:00:13".
114 '''
113 115 return util.datestr((text[0], 0), '%Y/%m/%d %H:%M:%S')
114 116 # date like in svn's $Date
115 117 def svnisodate(text):
118 ''':svnisodate: Date. Returns a date in this format: "2009-08-18 13:00:13
119 +0200 (Tue, 18 Aug 2009)".
120 '''
116 121 return util.datestr(text, '%Y-%m-%d %H:%M:%S %1%2 (%a, %d %b %Y)')
117 122 # date like in svn's $Id
118 123 def svnutcdate(text):
124 ''':svnutcdate: Date. Returns a UTC-date in this format: "2009-08-18
125 11:00:13Z".
126 '''
119 127 return util.datestr((text[0], 0), '%Y-%m-%d %H:%M:%SZ')
120 128
121 129 # make keyword tools accessible
General Comments 0
You need to be logged in to leave comments. Login now