current=`date "+%Y-%m-%d %H:%M:%S"`
timeStamp=`date -d "$current" +%s`
#将current转换为时间戳,精确到毫秒
currentTimeStamp=$((timeStamp*1000+10#`date "+%N"`/1000000))
echo $currentTimeStamp
10#表示转换为十进制做运算
(错误信息: value too great for base (error token is "017800000"))