常用shell(1):shell获取系统当前时间戳
来源:互联网 发布:淘宝卖店铺 编辑:程序博客网 时间:2024/06/13 08:35
1. shell脚本如下
current=`date "+%Y-%m-%d %H:%M:%S"` timeStamp=`date -d "$current" +%s` #将current转换为时间戳,精确到毫秒 currentTimeStamp=$((timeStamp*1000+`date "+%N"`/1000000)) echo $currentTimeStamp
2. 运行效果
阅读全文
0 0
- 常用shell(1):shell获取系统当前时间戳
- shell获取当前系统时间
- shell中获取系统当前时间
- adb shell 获取当前时间戳
- shell 获取系统时间
- shell获取系统时间
- [shell]获取系统时间
- shell 获取当前日期,当前时间
- shell 获取当前日期,当前时间
- shell脚本如何获取当前时间
- shell脚本如何获取当前时间
- shell脚本如何获取当前时间
- shell脚本如何获取当前时间
- shell下获取系统时间方法
- shell下获取系统时间方法
- 查看当前系统shell
- shell 以及python获取当前时间,构造文件后缀名
- Shell中怎么获取当前日期和时间
- Vim Basic
- MVG读书笔记——射影变换的校正(三)
- 小结 -2017-8-13
- 直接给vue数组赋值,无法渲染到页面
- Struts2中获得Request,Response的几种方法
- 常用shell(1):shell获取系统当前时间戳
- 【寒江雪】C++内存对齐原则
- POJ1988 Cube Stacking(并查集的应用)
- Retrofit 中设置 OkHttp 拦截器,保存和添加 Cookie
- FrameBuffer之register_framebuffer
- COJ1978-LXX的图论题
- C++/CLI 窗体程序通过空间的name操纵控件
- spring AOP
- Codeforces 839C Journey(dfs+概率)