#NEWLINE# def _from_datestring( self , s ) : #NEWLINE# #INDENT# if ( self [ 0 ] == '+' ) : #NEWLINE# #INDENT# s = s [ 1 : ] #NEWLINE# #UNINDENT# dt = datetime . datetime . strptime ( s , self . date_format ) #NEWLINE# self . _from_timetuple ( dt . timetuple ( ) )