您的位置:首页 > 运维架构 > Linux

Linux时间戳 与 标准时间 转换

2017-02-21 16:09 323 查看
标准时间转时间戳

[root@ops-ip-statistic a]# date +%s
1487664464


秒时间戳转标准时间

[root@ops-ip-statistic a]# date -d@1487522534 +%F" "%T
2017-02-20 00:42:14


毫秒时间戳 转 标准时间

[root@ops-ip-statistic a]# date -d@$(expr 1487543407521 / 1000) +%F" "%T
2017-02-20 06:30:07
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: