#NEWLINE# def db_value( self , value ) : #NEWLINE# #INDENT# timestamp = time . mktime ( value . timetuple ( ) ) #NEWLINE# micro = ( value . microsecond * ( 10 ** ( - 6 ) ) ) #NEWLINE# return ( timestamp + micro )