From the monthly archives:

September 2007

Yep. Quadruple-barrelled. I always wondered what'd happen if one double-barrelled person married another double-barrelled person. Reg Drax here seems to be Exhibit A.  Our kids are double-barrelled. To save them from Reg' fate, we carefuly chose their middle names so they could ditch the two surnames entirely if necessary.  Thanks, Merlin! 


Django vs feedparser on dates

by garth on September 1, 2007

I'm having trouble storing feedparser results in a Django model. It's all about timestamps. Feedparser returns timestamps in a standard time nine-tuple, asserting UTC. Django wants datetime objects. So, I'm trying to translate: django_timestamp = datetime.datetime.fromtimestamp(time.mktime(feedparser_timestamp)) feedparser_timestamp = django_timestamp.utctimetuple() This works fine for the majority of timestamps, but sometimes translating to datetime and back mutates […]