Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1437120
  • 博文数量: 244
  • 博客积分: 3353
  • 博客等级: 中校
  • 技术积分: 3270
  • 用 户 组: 普通用户
  • 注册时间: 2011-11-09 17:56
文章分类

全部博文(244)

文章存档

2023年(7)

2022年(7)

2021年(4)

2020年(1)

2019年(2)

2017年(2)

2016年(3)

2015年(11)

2014年(20)

2013年(10)

2012年(176)

分类: LINUX

2016-10-28 14:22:28

How to get the current epoch time in ...

Unix/Linux

date +%s

Convert from human readable date to epoch

Unix/Linux

date +%s -d"Jan 1, 1980 00:00:01"   Replace '-d' with '-ud' to input in GMT/UTC time.

Convert from epoch to human readable date

Unix/Linux

date -d @1190000000   Replace 1190000000 with your epoch, needs recent version of 'date'. Replace '-d' with '-ud' for GMT/UTC time

阅读(2596) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~