private boolean isWithinTimeRange(final ScalePolicyDO policy) {
        Date now = new Date();
        return now.after(policy.getBeginTime()) && now.before(policy.getEndTime());
    }
isWithinTimeRange.

@param policy policy
@return boolean
shenyu-admin/src/main/java/org/apache/shenyu/admin/scale/scaler/ScaleService.java