In [6]: d = datetime.datetime(2009, 1, 2)
   ...: print(type(d))
   ...: print(d)
   ...: print(d.year, d.month, d.day, d.hour, d.minute, d.second)
   ...:
   ...:
<type 'datetime.datetime'>
2009-01-02 00:00:00
(2009, 1, 2, 0, 0, 0)