获取秒为单位的时间戳
adb shell date +%s
获取纳秒单位的时间戳
adb shell date +%s%N
将纳秒单位的时间戳除以1000000即可获得毫秒单位时间戳
Win10获取毫秒单位时间戳的
powershell [long]((date).touniversaltime()-[datetime]'1970-01-01').totalmilliseconds
BAT脚本中实现获取Android时间戳,必须先指定一个时区。
adb shell setprop presist.sys.timezone Asia/Shanghai
然后使用以下指令
adb shell date +%%s%%N



