Use datetime.strptime() to read the date-time values

Use built in function datetime.strptime() to read the date-time
readings from the log file.