当前位置:网站首页>Shell (34): time

Shell (34): time

2022-06-22 22:12:00 Lxinccode

Reference resources : Shell Script fetches the day before yesterday 、 Yesterday and today - Grey letter network ( Software development blog aggregation )

today

date -d "now" +%Y-%m-%d

Tomorrow,

date -d 1day +%Y-%m-%d

yesterday

date -d -1day +%Y-%m-%d

%Y year
%m month
%d Japan
%H when
%M branch
%S second

原网站

版权声明
本文为[Lxinccode]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/173/202206222030548271.html