#NEWLINE# def is_equal_to_ignoring_time( self , other ) : #NEWLINE# #INDENT# if ( type ( self . val ) is not datetime . datetime ) : #NEWLINE# #INDENT# raise TypeError ( ( 'val must be datetime, but was type <%s>' % type ( self . val ) . __name__ ) ) #NEWLINE# #UNINDENT# if ( type ( other ) is not datetime . datetime ) : #NEWLINE# #INDENT# raise TypeError ( ( 'given arg must be datetime, but was type <%s>' % type ( other ) . __name__ ) ) #NEWLINE# #UNINDENT# if ( self . val . date ( ) != other . date ( ) ) : #NEWLINE# #INDENT# self . _err ( ( 'Expected <%s> to be equal to <%s>, but was not.' % ( self . val . strftime ( '%Y-%m-%d' ) , other . strftime ( '%Y-%m-%d' ) ) ) ) #NEWLINE# #UNINDENT# return self