from datetime import datetime


def parse_time(time):
    """convert time string to datatime object

    :param str time: time representation
    :return: datetime.datetime
    :rtype: int
    """

    ''' "Fri Aug 29 12:23:59 +0000 2014" '''
    return datetime.strptime(time, '%a %b %d %X %z %Y')