correcting datetime format

In [1]: from datetime import *

In [4]: datetime(year=2013, month=7, day=1)
Out[4]: datetime.datetime(2013, 7, 1, 0, 0)

In [5]: dt = _

In [6]: datetime.now() - dt
Out[6]: datetime.timedelta(116, 55974, 824198)

In [7]: t = _

In [8]: t.total_seconds()
Out[8]: 10078374.824198

In [9]: _ / (60 * 60 * 24 * 7 * 30) # shouldn't multiply by both week and month!
Out[9]: 0.5554659845788139