Answers for "attributeerror: module 'datetime' has no attribute 'now']"

0

AttributeError: module 'datetime' has no attribute 'now'

import datetime

print(type(datetime))
d1 = datetime.datetime.now()
print(d1)
Posted by: Guest on September-02-2021
0

'datetime' has no attribute 'now'

import datetime
print(datetime.__file__)
Posted by: Guest on June-09-2021

Code answers related to "attributeerror: module 'datetime' has no attribute 'now']"

Python Answers by Framework

Browse Popular Code Answers by Language