更新时间:2022-02-06 08:40:59
您仍然可以使用perl进行此操作或python oneliners,例如,从当前日期减去一天:
you still can do this with perl or python oneliners, e.g., substract one day from current date:
$ date
Thu May 14 15:31:49 MEST 2015
$ python -c "from datetime import datetime, timedelta; print (datetime.now() - timedelta(1)).strftime('%c');"
Wed May 13 15:31:58 2015