@classmethod
def from_str(cls, string):
    """
        Parse string and return an :class:`OrgDate` objects.

        >>> OrgDate.from_str('2012-02-10 Fri')
        OrgDate((2012, 2, 10))
        >>> OrgDate.from_str('2012-02-10 Fri 12:05')
        OrgDate((2012, 2, 10, 12, 5, 0))

        """
    match = cls._from_str_re.match(string)
    if match:
        mdict = match.groupdict()
        return cls(cls._datetuple_from_groupdict(mdict), active=cls.
            _active_default)
    else:
        return cls(None)
