As a starter with Python I have the following issue.
Running this program results in:
AttributeError: type object 'datetime.datetime' has no attribute 'datetime'
I think that is has something to do with the import but I don't know what.
I hope that some can help me out here.
Jan van Eeden
Code: Select all
from datetime import datetime, timedelta from datetime import * tomorrow = datetime.now() + timedelta(days=+1) tomorrow_formatted = tomorrow.strftime('%-d-%m-%y') d=datetime.datetime.strptime(tijd,'%H:%M') dnow=datetime.datetime.now() print(tomorrow_formatted) print (dnow)