date 命令 时间戳到标准格式转换

1. 知道时间戳看标准时间, 时间戳到 秒:

date -d @1428478407
Wed Apr  8 15:33:27 CST 2015

2. 看到前时间时间戳格式

date +%s
1428478850

3. 知道某个标准时间, 看时间戳

 date -d "Wed Apr  8 15:33:27 CST 2015" +%s
1428478407

更详细的,看这里:http://blog.csdn.net/tianxw1209/article/details/6337161

原文地址:https://www.cnblogs.com/hwlcathy/p/4402611.html