#NEWLINE# def run( self , date_string ) : #NEWLINE# #INDENT# dt = dateparser . parse ( timestamp ) #NEWLINE# if ( not dt ) : #NEWLINE# #INDENT# raise ValueError ( ( 'Failed to parse date string: %s' % date_string ) ) #NEWLINE# #UNINDENT# timestamp = int ( time . mktime ( dt . timetuple ( ) ) ) #NEWLINE# return timestamp