#NEWLINE# def datetime( self ) : #NEWLINE# #INDENT# '\n        Returns a datetime object at the end of the selected\n        (or current) date. This is needed to properly filter\n        transactions that occur during the day we are filtering\n        for\n        ' #NEWLINE# date = ( self . config . get ( 'date' ) or '' ) #NEWLINE# try : #NEWLINE# #INDENT# date = parser . parse ( date ) . date ( ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# date = datetime . utcnow ( ) . date ( ) #NEWLINE# #UNINDENT# return datetime ( date . year , self . month , date . day , 23 , 59 , 59 )