I\'m trying to convert times from 12 hour times into 24 hour times...
06:35 ## Morning 11:35 ## Morning (If m2 is anywhe
One more way to do this cleanly
def format_to_24hr(twelve_hour_time): return datetime.strftime( datetime.strptime( twelve_hour_time, '%Y-%m-%d %I:%M:%S %p' ), "%Y-%m-%d %H:%M:%S")