'Given a ``timestamp`` (datetime object) normalize to an epoch timestamp.
i.e. if the rollup is minutes, the resulting timestamp would have
the seconds and microseconds rounded down.'

def normalize_to_epoch(self, timestamp, seconds):

    epoch = int(to_timestamp(timestamp))
    return (epoch - (epoch % seconds))
