- 论坛徽章:
- 33
|
这是老版本的GNU date命令的bug,新的版本已经修复了。
[root@WLS1 bin]# date -d 'next monday'
Mon Dec 1 00:00:00 CST 2014
[root@WLS1 bin]# date --version
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.
[root@WLS1 bin]# /usr/local/coreutils-8.23/bin/date -d 'next monday'
Mon Dec 8 00:00:00 CST 2014
[root@WLS1 bin]# /usr/local/coreutils-8.23/bin/date --version
date (GNU coreutils) 8.23
Copyright (C) 2014 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by David MacKenzie.
|
|
|