I\'m using the Paypal API and I get back a timestamp in the following format. It try to parse this to a datetime object using strptime, but I get the following error:
The problem is that you use %M twice. Use %m for the months:
%M
%m
>>> datetime.strptime('2012-03-01T10:00:00Z','%Y-%m-%dT%H:%M:%SZ') datetime.datetime(2012, 3, 1, 10, 0)