File: filters.py

package info (click to toggle)
palettable 3.3.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 772 kB
  • sloc: python: 25,326; makefile: 9
file content (5 lines) | stat: -rw-r--r-- 125 bytes parent folder | download | duplicates (2)
1
2
3
4
5
def dateformat(value, format="%d-%b-%Y"):
    return value.strftime(format)

filters = {}
filters['dateformat'] = dateformat