News

You've noticed that datetime.time objects do not support arithmetic, but both datetime.time and datetime.timedelta objects do. You can use combinations of them to do what you want.
Learn how to work with date and time values using Python's datetime library, and how to avoid some of the gotchas and pitfalls of the datetime datatype.