I discovered version 2.0 of the shell utils. Version two has the
same problem reported below.


---------- Forwarded message ----------
Date: Sun, 2 Jan 2000 20:26:48 -0600 (CST)
From: Bob Paver <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: possible bug in 'date' program

While using the GNU date (sh-utils.1.16) program to generate a
"year of Mondays," I discovered what appears to be a bug.

The command:

   date -d "first monday 4 months"

returns

   Mon May  8 00:00:00 CDT 2000

May 8 is obviously not the first Monday in May.  All other "first
mondays" of the month for the year 2000 are correct.

This copy of the date program is running on HPUX 10.20. The
program was compiled with the GNU C compiler.

Similar results are obtained running under Linux.

---
Bob Paver                                    (512) 863-1676
Assoc. VP, Information Technology Services   (512) 863-1605 fax
Southwestern University                      Georgetown, TX 78626
[EMAIL PROTECTED]    <<<<<<<  >>>>>>>   http://www.southwestern.edu/

Reply via email to