HP3000-L Archives

April 1999, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
"Glenn J. Koster, Sr." <[log in to unmask]>
Reply To:
Date:
Wed, 14 Apr 1999 09:30:07 -0600
Content-Type:
text/plain
Parts/Attachments:
text/plain (50 lines)
Jay Willis wrote:

> I am in the process of testing my programs for Y2K-compliance and was
> wondering what dates are being used to test against. This is the list
> of dates that I have come up with:
>
> 09/09/99...............all 9's
> 12/31/99...............last date of this millenium > 01/01/2000...........first date of the next millenium > 01/02/2000...........2nd date of the next millenium > 02/29/2000...........leap year date
> 10/10/2000...........1st 8-character date
> 02/29/2004...........leap year date

I would suggest dropping "09/09/99".  In all my years (23+ of
programming, I have never seen anyone use this construct.  Normally, if
you were going to use all "9" in a date field as a terminator, the date
would have been "99/99/99" or "999999"... note the lack of zeros!

I would also drop 01/02/2000 and replace it with 01/03/2000 - the first
working date of 2000.

You have to remember that what you are really trying to test is one of
the following basic conditions:

     1.  Is the date recognized as a valid date?  Or correctly
         rejected if it is not?
     2.  Is leap year handled correctly?
     3.  Does the roll from one date to another (12-31 to 01-01)
         work correctly?
     4.  If you have date arithmetic, does adding or subtracting
         "x" number of days yield the correct result?
     5.  Is the date displayed in a readable form?  (This is a
         problem that many MM sites experience since MM uses an
         encoded year of "A0" for 2000 - and many users don't
         understand this.)
     6.  If you use "day of week" calculation routines, is the
         correct value returned?

Glenn
--
 ______________
|  Navigators  | Under contract to Hewlett-Packard ISG (Greeley, CO)
|     |)       |
|     | )      | Glenn J. Koster, Sr.             [log in to unmask]
|     |  )     | Managed Business Solutions    http://www.mbsnav.com
|     |   )    | 214 S. College, Suite 201     At HP: (970) 350-5337
|     |----    | Fort Collins, CO  80524      At MBS: (970) 224-1016
| ============ |
| \__________/ |
|   of Change  | aka:  [log in to unmask]
|______________| home: http://members.aol.com/MichiTex

ATOM RSS1 RSS2