linux 时间戳
来源:互联网 发布:js删除数组里面空格 编辑:程序博客网 时间:2024/06/06 12:43
在linux里面经常要用到时间,linux有各种各样的时间
unix时间戳
shell里面可以使用date命令来获取
输入date可以看到当前具体的年月日时等信息
date
Mon May 22 14:38:24 CST 2017
date +%s可以看到当前时间距离1970年1月1日0时0分0秒的秒数
date +%s
1495435118
如果想看任何一个时间距离1970年1月1日0时0分0秒的秒数
date -d"May 22 14:27:32 CST 2017" +%s
1495434452
如果想看距离1970年1月1日0时0分0秒的秒数对应的是哪一天,可以使用:
date -d @1495435118
更多的可以参考man date
阅读全文
0 0
- linux 时间戳/时间转换
- linux Makefile时间戳
- linux Makefile时间戳
- Linux: 时间戳
- LINUX时间戳转换
- linux时间戳转换
- linux文件时间戳
- 获取linux时间戳
- 获得Linux时间戳
- linux文件时间戳
- linux 时间戳
- linux文件时间戳
- linux时间戳、时间互转
- linux 时间戳转换/dmesg 时间转换
- Linux 时间戳和标准时间
- Linux时间戳、时间类型转换
- linux 时间戳转换/dmesg 时间转换
- linux获取系统时间和时间戳
- HTML关键字<7>
- 渲染管线—局部坐标到世界坐标的转换
- 2017可信云大会即将于7月在京召开!
- 如何解决广播中SD卡和开机自启动冲突的问题
- R中媲美Python Dictionary的神器-hash
- linux 时间戳
- JSON格式与string格式互相转换
- Guice入门实例和单例模式
- Java线程的sleep和interrupt方法测试
- Kinect V1结构光激光散斑原理及样式
- LeetCode 349. Intersection of Two Arrays
- 强大的Android控件之RecyclerView体验艺术般的控件
- 文件的原子操作
- 浏览器兼容获取XmlHttpRequest对象