import time


def parse_time(strTime):
    """Parse a string like this: 2017-05-11T10:02:03.589"""
    # Strip fractional seconds.
    strTime = strTime.split(".")[0]
    return time.mktime(time.strptime(strTime, '%Y-%m-%dT%H:%M:%S'))