shell脚本打印日期时间时间:2021-07-02 21:53:16starttime=$(date +%Y-%m-%d\ %H:%M:%S) echo $starttime ttime=`date +"%Y-%m-%d %H:%M:%S"` echo $ttime