Answers for "type object 'datetime.time' has no attribute 'now'"

4

datetime has no attribute now

#You probably have

import datetime

#change that to

from datetime import datetime
Posted by: Guest on June-20-2020
0

attributeerror module 'datetime' has no attribute 'now' python

import _datetime

today = _datetime.date.today()

print(today)
Posted by: Guest on June-29-2021

Code answers related to "type object 'datetime.time' has no attribute 'now'"

Python Answers by Framework

Browse Popular Code Answers by Language