c.execute('insert into foo values(?, ?)', (23, datetime.datetime.now()))
c.execute('insert into foo values(?, ?)', (42, datetime.datetime.now() +
    datetime.timedelta(-1)))
Reading back a datetime in sqlite3