linux中正常显示时间与时间戳的命令:
[root@master history]# date +%F2020-06-19[root@master history]# date +%s1592533825把时间戳转换为时间的命令
[root@master history]# date -d @15925338252020年 06月 19日 星期五 10:30:25 CST转换指定日期时间戳:
[root@master history]# date -d '2020-2-22 22:22:22' +%s1582381342指定日期格式的转换:
[root@master history]# date -d @1582381342 +"%Y-%m-%d %H:%M:%S"2020-02-22 22:22:22