diff -r aaa62c8e5bd5 -r f13cf27a360b helpers.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/helpers.py Mon Feb 09 00:24:13 2009 +0200 @@ -0,0 +1,22 @@ +""" + Some additional helpers +""" + +# "inherit" qmsk.web's helpers +from qmsk.web.helpers import * + +def tz_name (tz) : + """ + Returns a string describing the given timezone + """ + + return str(tz) + +def fmt_date (date) : + """ + Formats a date + """ + + # XXX: hardcoded + return date.strftime('%Y-%m-%d') +