Linux下date常用格式化输出

date "+%Y-%m-%d"  
2013-02-19date "+%H:%M:%S"  
13:13:59date "+%Y-%m-%d %H:%M:%S"  
2013-02-19 13:14:19date "+%Y_%m_%d %H:%M:%S"    
2013_02_19 13:14:58date -d today   
Tue Feb 19 13:10:38 CST 2013date -d now  
Tue Feb 19 13:10:43 CST 2013date -d tomorrow  
Wed Feb 20 13:11:06 CST 2013date -d yesterday  
Mon Feb 18 13:11:58 CST 2013  

 

posted @ 2018-01-17 23:32  EasonJim  阅读(23127)  评论(0编辑  收藏  举报