@staticmethod
    def totimestamp(dt=None, epoch=datetime.datetime(1970, 1, 1)):
        if not dt:
            dt = datetime.datetime.utcnow()
        td = epoch - dt
        # return td.total_seconds()
        return int((td.microseconds + (td.seconds + td.days * 24 * 3600)
                    * 10**6) / 1e6)
dataset/ETHPy150Open openstack/monitoring-for-openstack/oschecks/neutron.py/Novautils.totimestamp/swapped operands of `-`