7 messages in com.googlegroups.sqlalchemy[sqlalchemy] DateTime vs datetime.dat...
FromSent OnAttachments
Samuel30 Nov 2007 12:37 
Michael Bayer30 Nov 2007 13:15 
Samuel30 Nov 2007 13:59 
Michael Bayer30 Nov 2007 14:21 
Samuel30 Nov 2007 14:44 
Michael Bayer30 Nov 2007 14:56 
Samuel01 Dec 2007 00:10 
Subject:[sqlalchemy] DateTime vs datetime.datetime
From:Samuel (knip@gmail.com)
Date:11/30/2007 12:37:38 PM
List:com.googlegroups.sqlalchemy

Hi,

I haven't found this in the list archives or the docs: How do you convert between DateTime and datetime.datetime objects? In particular, I am trying to do the following:

last_change = res.fetchone().changed # this returns a DateTime object test = last_change < datetime.datetime.now()

TypeError: can't compare datetime.datetime to DateTime