/ Published in: Django
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
from time import mktime from datetime import datetime dt = datetime.fromtimestamp(mktime(item['updated_parsed']))
URL: http://stackoverflow.com/questions/6287268/populating-a-django-datetimefield-with-feedparser