Similar methods

Report a typo

The datetime.datetime class provides two similar methods: now() and today(). Without any parameters, they return almost the same result showing the current date and time:

print(datetime.datetime.now())    # 2021-08-20 21:58:57.886948
print(datetime.datetime.today())  # 2021-08-20 21:58:57.886990

What is the difference between these methods?

Select one option from the list
___

Create a free account to access the full topic