def parse_time(time):
    if isinstance(time, datetime.datetime):
        return time
    return datetime.datetime.strptime(time, DATETIME_FORMAT_OPENVPN)
Parses date and time from input string in OpenVPN logging format.
dataset/ETHPy150Open tonyseek/openvpn-status/openvpn_status/utils.py/parse_time