Hello,

I have some problem with the 'date' command. Maybe it is a bug.

First the actually date:

[root@bb /root]# date
Wed Jul 31 14:41:53 CEST 2002
[root@bb /root]#

Then, when I run the following command I don't get the right answer.

[root@bb /root]# date --date "1 month ago" +%D
07/01/02
[root@bb /root]#

The month is the same. But the dat that now 31 is gets 01.

When I do the following.

[root@bb /root]# date --date "2 month ago" +%D
05/31/02
[root@bb /root]#

Then the month is getting right. Is this a bug or do I something wrong.

Sorry for the bad english. I hope you understood.

Regards Theo


_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to