lib/helpers.py
author Tero Marttila <terom@fixme.fi>
Sat, 07 Feb 2009 04:57:22 +0200
changeset 26 9d3beac1b196
child 28 b68145b5ce24
permissions -rw-r--r--
remove foo.html page, and rice up the footer a bit
26
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     1
"""
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     2
    Helper functions for use in templates
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     3
"""
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     4
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     5
import time
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     6
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     7
import config
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     8
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     9
def now () :
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    10
    """
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    11
        Returns the current date/time
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    12
    """
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    13
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    14
    return time.strftime(config.DATETIME_FMT)
9d3beac1b196 remove foo.html page, and rice up the footer a bit
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    15