Datetime Arithmetic in Python

Working with datetime is hard and error prone, but Python actually provides the right tools with timedelta to work with them. It's a shame that most developers are not making the best use of it. Basic Arithmetic Let's first catch up what the basic operations are: Advanced Arithmetic Now, let's …