A simple Python project that adds a duration to a given start time in 12-hour format (AM/PM), with optional support for the day of the week. It handles time rollovers, day changes, and large hour additions.
Input start time in HH:MM AM/PM format
Input duration in HH:MM format (hours can be any number, minutes < 60)
Optional day of the week input (case-insensitive)
Handles:
AM ↔ PM conversions
Day rollover (next day) or (n days later)
Correct calculation of resulting day of the week
add_time("3:00 PM", "3:10")
add_time("11:30 AM", "2:32", "Monday")
add_time("10:10 PM", "3:30")
add_time("11:43 PM", "24:20", "tueSday")
add_time("6:30 PM", "205:12")