@staticmethod
    def _time_now_and_start_period():
        now = timeutils.utcnow().replace(tzinfo=iso8601.iso8601.Utc(),
                                         microsecond=0)
        start_period = now - datetime.timedelta(seconds=10)
        return now, start_period
dataset/ETHPy150Open openstack/nova/nova/tests/unit/objects/test_bandwidth_usage.py/_TestBandwidthUsage._time_now_and_start_period/original