[Top][All Lists]

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

bug in date utility?

From: Majid Tajamolian
Subject: bug in date utility?
Date: Mon, 19 Mar 2001 12:21:27 +0430

1. I am not sure that hit a bug or no, but I found the following strange behavior using "date (GNU sh-utils) 2.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
which as the man page says, I expected to receive "Thu Jan  1 00:00:00 IRT 1970" 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".
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)

Attachment: Majid Tajamolian.vcf
Description: Vcard

reply via email to

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