Message284245
import sqlite3, datetime
c = sqlite3.connect(':memory:', detect_types=sqlite3.PARSE_DECLTYPES|sqlite3.PARSE_COLNAMES)
cur = c.cursor()
cur.execute('create table test(t timestamp)')
t = datetime.datetime.now(tz=datetime.timezone.utc)
cur.execute("insert into test(t) values (?)", (t,))
cur.execute('select t from test')
l = cur.fetchone()[0]
t == l # the result not equal to the original one |
|
Date |
User |
Action |
Args |
2016-12-29 10:38:36 | xiang.zhang | set | recipients:
+ xiang.zhang, lemburg, ghaering, belopolsky, serhiy.storchaka, bozo.kopic |
2016-12-29 10:38:36 | xiang.zhang | set | messageid: <1483007916.71.0.439305981704.issue29099@psf.upfronthosting.co.za> |
2016-12-29 10:38:36 | xiang.zhang | link | issue29099 messages |
2016-12-29 10:38:36 | xiang.zhang | create | |
|