helpers.py
author Tero Marttila <terom@fixme.fi>
Mon, 09 Feb 2009 01:11:05 +0200
changeset 51 07ca28f3a9f2
parent 50 f13cf27a360b
child 54 b65a95eb9f6b
permissions -rw-r--r--
use improved URLConfig/URLType
"""
    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')