summaryrefslogtreecommitdiffstats
path: root/Doc/includes/sqlite3/pysqlite_datetime.py
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/includes/sqlite3/pysqlite_datetime.py')
-rw-r--r--Doc/includes/sqlite3/pysqlite_datetime.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/Doc/includes/sqlite3/pysqlite_datetime.py b/Doc/includes/sqlite3/pysqlite_datetime.py
index 5d843f9..efa4b06 100644
--- a/Doc/includes/sqlite3/pysqlite_datetime.py
+++ b/Doc/includes/sqlite3/pysqlite_datetime.py
@@ -11,12 +11,10 @@ now = datetime.datetime.now()
cur.execute("insert into test(d, ts) values (?, ?)", (today, now))
cur.execute("select d, ts from test")
row = cur.fetchone()
-print(today, "=>", row[0], type(row[0]))
-print(now, "=>", row[1], type(row[1]))
+print today, "=>", row[0], type(row[0])
+print now, "=>", row[1], type(row[1])
cur.execute('select current_date as "d [date]", current_timestamp as "ts [timestamp]"')
row = cur.fetchone()
-print("current_date", row[0], type(row[0]))
-print("current_timestamp", row[1], type(row[1]))
-
-con.close()
+print "current_date", row[0], type(row[0])
+print "current_timestamp", row[1], type(row[1])