Hi. I am new to Python and I am writing a script. What I am trying to do is, get the current time and store it so that I can use it in a logic somewhere else. I am using the following code to get the current time.
import datatime
time= datetime.datetime.now()
print(time)
This script is returning the time and date in the below format:
2019-05-08 16:29:14.960470
I want to store time and date separately in two different variables: time and date.
How to do this?