逻辑是大于今天21点小于今天24点设置currdate_day为currdate_day+1
time=`date +%H:%M:%S`
if [[ "$time" > "21:00:00" ]] && [[ "$time" < "24:00:00" ]]
then
currdate_day=`date +%Y-%m-%d -d"+1 day"`
else
currdate_day=`date +%Y-%m-%d`
fi
逻辑是大于今天21点小于今天24点设置currdate_day为currdate_day+1
time=`date +%H:%M:%S`
if [[ "$time" > "21:00:00" ]] && [[ "$time" < "24:00:00" ]]
then
currdate_day=`date +%Y-%m-%d -d"+1 day"`
else
currdate_day=`date +%Y-%m-%d`
fi