I have this code:
I get the error "TypeError: descriptor 'time' requires a datetime.datetime object but received a 'int'.
Code: Select all
import datetime from datetime import datetime, date, time, timedelta midnight=datetime.combine(datetime.now(),datetime.time(0,0,0))
I looks to me that I have used datetime but...
I tried various combinations but am getting no-where.