Python's built-in datetime module provides classes for manipulating dates and times in both simple and complex ways.
View on Python docs - for Python 2 and Python 3.