(log)
return datetime.strptime(tstamp, "%Y-%m-%d %H:%M:%S")
Parse timestamp from log line
Parse timestamp from log line
Parse timestamp from log line
def _get_time(log):
    """Parse timestamp from log line"""
    tstamp = log[:19]
    return datetime.strptime(tstamp, "%Y-%m-%d %H:%M:%S")
def _get_time ( log ) : tstamp = log [ : 19 ] return datetime . strptime ( tstamp , "%Y-%m-%d %H:%M:%S" )