Re: [SQLObject] DateTimeCol with microsecond resolution.
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Oleg B. <ph...@ph...> - 2011-02-01 18:24:58
|
On Tue, Feb 01, 2011 at 09:13:35PM +0300, Oleg Broytman wrote: > def DateTimeConverter(value, db): > return "'%s'" % value.isoformat Oops, sorry, a bug: return "'%s'" % value.isoformat() > > registerConverter(datetime.datetime, DateTimeConverter) Oleg. -- Oleg Broytman http://phdru.name/ ph...@ph... Programmers don't die, they just GOSUB without RETURN. |