`

timestamp to date [ 及date 相关的 命令]

阅读更多
linux shell convert timestamp to date
$ date --date='1447897489'
2015年 11月 19日 星期四 09:44:49 CST

-----------------------------------------------------------------
$ date -d now +%Y%m%d
20151126      #(2015年11月26日)
%M  表示分钟
%D  11/26/15  #(2015年11月26日)
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics