'Parse a date/time string
@param string: the date/time string
@return: a timetuple (y, m, d, hh, mm, ss)'

def parse(self, string):

    if (not isinstance(string, basestring)):
        raise TypeError(('Invalid    argument    type:    expected    str,    got    %s' % type(string)))
    try:
        result = self.grammar.parseString(string)
    except self.ParseException:
        raise ValueError(('Invalid    date/time:    %s' % string))
    return self._validate(result)
