Only Python 3.3+ has the timestamp method for datetime.datetime.