In [7]:
import datetime
import pytz

In [2]:
epoch = 1410974864

In [13]:
dt = datetime.datetime.fromtimestamp(1410974864, tz=pytz.UTC)
dt
# Wed, 17 Sep 2014 17:27:44 GMT


Out[13]:
datetime.datetime(2014, 9, 17, 17, 27, 44, tzinfo=<UTC>)

In [11]:
dt.replace(hour=0, minute=0, second=0, microsecond=0)


Out[11]:
datetime.datetime(2014, 9, 17, 0, 0)