[Top][All Lists]

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

Fw: bug in date utility?

From: Majid Tajamolian
Subject: Fw: bug in date utility?
Date: Tue, 3 Apr 2001 16:30:06 +0430

Hi there,
I sent the following mail to the address@hidden as man page says. But no reply 
was received. I have found your email address in GNU web site and forward it  
to you in prospect of response.

M. Tajamolian

----- Original Message ----- 
From: Majid Tajamolian 
To: address@hidden 
Sent: ??????, 29 ?????, 1379 12:21 ???
Subject: bug in date utility?

1. I am not sure that hit a bug or no, but I found the following strange 
behaviors using "date (GNU sh-utils) v2.0    Written by David MacKenzie" on a 
RH6.1 box with glibc-2.1.2-11:
address@hidden /root]# date -d "`date +%s` sec ago"
Thu Jan  1 03:30:00 IRT 1970
address@hidden /root]# date -d '1 jan 1970' +%s
which as the man page says, I expected to receive "Thu Jan  1 00:00:00 IRT 
1970" and 'zero' instead! What do you think about it?!
2. Proffer: Two another very beneficial GNU extensions on % formatting options 
can be somethings which display
"days since Jan 1, 1970" and "seconds since begin of the current year/day".

Majid Tajamolian
JahanVasel Co.    http://www.vasel.com
"The worst of people is person who others
 cherish him because they dread his hurt!"
           The last prophet, Moham'mad (PBUH)

reply via email to

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