1 2 3 4 5 6 7 8 9 | from django.template import Library
import datetime
register = Library()
def feedparsed(value):
return datetime.datetime(*value[:6])
register.filter(feedparsed)
|
More like this
- HTTP (basic) auth enabled (new-style) syndication framework feed class by hupf 2 years, 5 months ago
- Widget for DateTime values on Geraldo Reports by marinho 4 years, 1 month ago
- EasyFeed class by limodou 6 years, 2 months ago
- Parsed RSS into template var by bram 4 years, 10 months ago
- Display arbitrary models by bjornkri 4 years, 10 months ago
Comments
Brilliant in its simplicity, and exactly what I came looking for. Works perfectly. Thanks!
#