查看13位时间

current=`date "+%Y-%m-%d %H:%M:%S"`
timeStamp=`date -d "$current" +%s`
currentTimeStamp=$((timeStamp*1000+`date "+%N"`/1000000))
echo $currentTimeStamp

猜你喜欢

转载自www.cnblogs.com/water-sky/p/11325727.html