Reputation: 909
import datetime
print datetime.strptime("00", "%y").year
I would like to be able to pass "00" into datetime.strptime and receive "2000" as an output. However, When I run code, I keep getting this error: AttributeError: 'module' object has no attribute 'strptime'
Upvotes: 1
Views: 1542