now(){
# echo `date +%Y:%m:%d %H:%M`
send=`date '+%Y-%m-%d %H:%M:%S'`
echo "${send}"
}
tmp=$(now)
tmpNew=`now`
echo "___$(now)___"
echo "___${tmp}___"
echo "___${tmpNew}___"
打印输出:
___2019-07-24 17:01:02___
___2019-07-24 17:01:02___
___2019-07-24 17:01:02___
网友评论