def _parse_timestamp(entry):
 if (not isinstance(entry, (str, str_type))):
  raise ValueError(('parse_timestamp() input must be a str, got a %s' % type(entry)))
 try:
  time = [int(x) for x in _timestamp_re.match(entry).groups()]
 except AttributeError:
  raise ValueError(('Expected timestamp in format YYYY-MM-DD HH:MM:ss but got ' + entry))
 return datetime.datetime(time[0], time[1], time[2], time[3], time[4], time[5])

def _parse_timestamp ( entry ) : if ( not isinstance ( entry , ( str , str_type ) ) ) : raise ValueError ( ( 'parse_timestamp() input must be a str, got a %s' % type ( entry ) ) ) try : time = [ int ( x ) for x in _timestamp_re . match ( entry ) . groups ( ) ] except AttributeError : raise ValueError ( ( 'Expected timestamp in format YYYY-MM-DD HH:MM:ss but got ' + entry ) ) return datetime . datetime ( time [ 0 ] , time [ 1 ] , time [ 2 ] , time [ 3 ] , time [ 4 ] , time [ 5 ] )
parses the date and time that in format like like .