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

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

shellutils bug in the "date" command


From: Dave_Mulligan
Subject: shellutils bug in the "date" command
Date: Mon, 8 Apr 2002 08:54:50 -0400


We found a bug in the "date" command in shellutils.  (We renamed it "gnudate".)

Today is Monday, April 8th, the day after the Daylight Savings time change.

If we try to get the date of "last saturday", it reports Friday.  It looks like it reports Saturday, but then subtracts an hour because of DST, which makes it Friday.


/home/dmullig: gnudate --v                                                  
date (GNU sh-utils) 2.0                                                    
Written by David MacKenzie.                                                
                                                                           
Copyright (C) 1999 Free Software Foundation, Inc.                          
This is free software; see the source for copying conditions.  There is NO  
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

/home/dmullig: gnudate                                                      
Mon Apr  8 08:40:42 EDT 2002                                                

/home/dmullig: gnudate -d"last saturday"                                    
Fri Apr  5 23:00:00 EST 2002                                                

--
David J Mulligan Jr
Spartan Stores
(419) 891-4954
address@hidden

"Can we fix it?  Yes we can!" - Bob the Builder

reply via email to

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