In [6]:
import datetime as dt
In [4]:
import time as tm
In [5]:
tm.time()
Out[5]:
In [9]:
now=dt.datetime.fromtimestamp(tm.time())
In [10]:
now.year
Out[10]:
In [ ]: