<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def parsedate(data):
 """Convert a time string to a time tuple."""

    t = parsedate_tz(data)
    if isinstance(t, tuple):
        return t[:9]
    else:
        return t