#NEWLINE# def _set_date( self , date ) : #NEWLINE# #INDENT# if isinstance ( date , datetime ) : #NEWLINE# #INDENT# self . db_date = date #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if ( isinstance ( date , basestring ) and ( date . strip ( ) != '' ) ) : #NEWLINE# #INDENT# newDate = datetime ( * time_strptime ( date , '%d %b %Y %H:%M:%S' ) [ 0 : 6 ] ) #NEWLINE# self . db_date = newDate