I would like to get the current time in Python and assign them into variables like year, month, day, hour, minute>
year
month
day
hour
minute>
For python 3
import datetime now = datetime.datetime.now() print(now.year, now.month, now.day, now.hour, now.minute, now.second)