Add strptime function for log timestamps