bug-sh-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

date command


From: Blom, Theo
Subject: date command
Date: Wed, 31 Jul 2002 14:45:32 +0200

Hello,

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

First the actually date:

address@hidden /root]# date
Wed Jul 31 14:41:53 CEST 2002
address@hidden /root]#

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

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

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

When I do the following.

address@hidden /root]# date --date "2 month ago" +%D
05/31/02
address@hidden /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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]