Linux有关日期的表示方法
1date1=`date --date='2 days ago' +%Y%m%d` 2昨天 (前一天) 3date –date='1 days ago' "+%Y-%m-%d" 4date -d '1 days ago' "+%Y-%m-%d" 5date -d yesterday "+%Y-%m-%d" 6明天 (后一天) 7date –date='1 days' "+%Y-%m-%d" 8date -d '1 days' "+%Y-%m-%d" 9date -d tomorrow "+%Y-%m-%d" 101小時前 11date –date='1 hours ago' "+%Y-%m-%d %H:%M:%S" 121小時后 13date –date='1 hours' "+%Y-%m-%d %H:%M:%S" 141分钟前 15date –date='1 minutes ago' "+%Y-%m-%d %H:%M:%S" 1……