<s> from pysqlite2 import dbapi2 as sqlite3 <EOL> import datetime , time <EOL> def adapt_datetime ( ts ) : <EOL> return time . mktime ( ts . timetuple ( ) ) <EOL> sqlite3 . register_adapter ( datetime . datetime , adapt_datetime ) <EOL> con = sqlite3 . connect ( "<STR_LIT>" ) <EOL> cur = con . cursor ( ) <EOL> now = datetime . datetime . now ( ) <EOL> cur . execute ( "<STR_LIT>" , ( now , ) ) <EOL> print cur . fetchone ( ) [ <NUM_LIT:0> ] </s>
