def wait_to_next_day(self, hour):
    logger.info("Will wait to next day's " + str(hour) + " o'clock" )

    now = datetime.datetime.now()
    next_day = datetime.datetime(now.year, now.month, now.day + 1, hour, 0)
    sleep_time = (next_day - now).total_seconds()
    
    logger.info("Sleep " + str(sleep_time) + " seconds")
    time.sleep(sleep_time)
dataset/ETHPy150Open XiaoMi/minos/owl/monitor/management/commands/count_rows.py/Command.wait_to_next_day/original