- 论坛徽章:
- 5
|
本帖最后由 dn833 于 2012-07-21 20:33 编辑
估计LZ不是linux,我在centos下运行这个命令是正确的- [root@cloud test]# date -d "20 days"
- Fri Aug 10 21:17:09 CST 2012
- [root@cloud test]# date -d "20 days" +%F
- 2012-08-10
- [root@cloud test]# date
- Sat Jul 21 21:17:58 CST 2012
复制代码- [root@cloud test]# date --v
- date (GNU coreutils) 5.97
- Copyright (C) 2006 Free Software Foundation, Inc.
- This is free software. You may redistribute copies of it under the terms of
- the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
- There is NO WARRANTY, to the extent permitted by law.
- Written by David MacKenzie.
复制代码 |
|