Template-Filter for Feedparser-Dates

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

  1. Parsed RSS into template var by bram 3 years, 7 months ago
  2. Media RSS generation for Photologue by ltvolks 2 years, 6 months ago
  3. EasyFeed class by limodou 4 years, 11 months ago
  4. HTTP (basic) auth enabled (new-style) syndication framework feed class by hupf 1 year, 1 month ago
  5. Smart i18n date diff (twitter like) by Batiste 2 years, 10 months ago

Comments

shacker (on September 29, 2009):

Brilliant in its simplicity, and exactly what I came looking for. Works perfectly. Thanks!

#

(Forgotten your password?)