Linux的日期与时间戳转换

日期转化为时间戳:

date +%s -d “2017-2-4 14:48:10”

 

时间戳转化成日期格式:

date -d @1486190890

作者: hqiang1984

量化自我,极简主义

发表评论

电子邮件地址不会被公开。