python printing date

import datetime
print(datetime.datetime.now()) # --> (year, month, day, hour, minute, second, millisecond)

Here is what the above code is Doing:
1. We’re importing the datetime module.
2. We’re printing the current date and time.
3. We’re printing the current year, month, day, hour, minute, second, and millisecond.