Reconstruct a datetime object

Report a typo

Suppose you created a datetime object and saved it to the variable current_datetime. When you printed it, you got the following result:

print(current_datetime)
# 2021-08-20 21:40:15

Now, reconstruct the initial line where you saved the datetime object to the current_datetime. Specify all the necessary parameters. Enter this line in the text field below.

Enter a short text
___

Create a free account to access the full topic