linux date得到当前时间的毫秒
echo `expr \`date +%s%N\` / 1000000`
-----------------------------------------------------
#/bin/bash
declarestartTime=`date+%s%N`;
echo `expr $startTime / 1000000`-----------------------------
#/bin/bash
#test.sh
declaretime_now=`expr\`date+%s%N\`/1000000`;
echo 当前时间毫秒:$time_now;declare time000n=`date -d \`date +%Y%m%d\` +%s%N`;
declare time_0=`expr $time000n / 1000000`;echo 当前时间取0时0分0秒的毫秒数:$time_0
相关推荐
klarclm 2020-06-13
清风徐来水波不兴 2020-06-09
九天银河技术 2020-11-11
zhangjie 2020-11-11
Crazyshark 2020-11-13
步知道 2020-10-27
tufeiax 2020-09-03
李轮清 2020-09-15
85251846 2020-09-14
wangpaiyonghu 2020-06-28
jackalwb 2020-06-14
yhljxy 2020-06-14
myveer 2020-06-14
xiaobaif 2020-06-14
songshijiazuaa 2020-06-13
TMD咯MySQL 2020-06-12
archive 2020-06-12