Back to index

python3.2  3.2.2
Functions | Variables
adapter_datetime Namespace Reference

Functions

def adapt_datetime

Variables

tuple con = sqlite3.connect(":memory:")
tuple cur = con.cursor()
tuple now = datetime.datetime.now()

Function Documentation

Definition at line 5 of file adapter_datetime.py.

00005 
00006 def adapt_datetime(ts):
00007     return time.mktime(ts.timetuple())
00008 
00009 sqlite3.register_adapter(datetime.datetime, adapt_datetime)

Here is the caller graph for this function:


Variable Documentation

tuple adapter_datetime.con = sqlite3.connect(":memory:")

Definition at line 10 of file adapter_datetime.py.

tuple adapter_datetime.cur = con.cursor()

Definition at line 11 of file adapter_datetime.py.

Definition at line 13 of file adapter_datetime.py.