ValueError: time data '24:00' does not match format '%H:%M'
ValueError: time data '24:00' does not match format '%H:%M' Question: I’m having serious trouble converting 24 hour time to 12 hour. def standard_time(t): t = datetime.strptime(t, “%H:%M”) return t When fed in ’24:00′ we get ValueError: time data ’24:00′ does not match format ‘%H:%M’ I also attempt converting using %I (12 hour) instead of %H, …