Implemented faster alternative for datetime.strptime.