summaryrefslogtreecommitdiffstats
path: root/Doc/lib/sqlite3/adapter_datetime.py
diff options
context:
space:
mode:
Diffstat (limited to 'Doc/lib/sqlite3/adapter_datetime.py')
-rw-r--r--Doc/lib/sqlite3/adapter_datetime.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/Doc/lib/sqlite3/adapter_datetime.py b/Doc/lib/sqlite3/adapter_datetime.py
deleted file mode 100644
index 5869e22..0000000
--- a/Doc/lib/sqlite3/adapter_datetime.py
+++ /dev/null
@@ -1,14 +0,0 @@
-import sqlite3
-import datetime, time
-
-def adapt_datetime(ts):
- return time.mktime(ts.timetuple())
-
-sqlite3.register_adapter(datetime.datetime, adapt_datetime)
-
-con = sqlite3.connect(":memory:")
-cur = con.cursor()
-
-now = datetime.datetime.now()
-cur.execute("select ?", (now,))
-print(cur.fetchone()[0])