import time


def pretty_date(date):
    """Format date from YYYY-mm-ddTHH:MM:SS to a python time structure

    Args:
        date:	String	Usually taken from a JIRA JSON response.

    Returns:
        Python timestruct
    """
    return time.strptime(date.split('.')[0], '%Y-%m-%dT%H:%M:%S')