Return to Snippet

Revision: 49372
at July 20, 2011 23:41 by magicrebirth


Initial Code
from time import mktime
from datetime import datetime
dt = datetime.fromtimestamp(mktime(item['updated_parsed']))

Initial URL
http://stackoverflow.com/questions/6287268/populating-a-django-datetimefield-with-feedparser

Initial Description

                                

Initial Title
Convert the time.struct_time object into a datetime.datetime object:

Initial Tags
python

Initial Language
Django