Waysys on the Web

waysys DateBench™

waysys DateBench™

Previous topic Next topic  

waysys DateBench™

Previous topic Next topic  

Capabilities

 

DateBench™ provides an operational definition of Year 2000 Compliance. Because of the Year 2000 crisis, many organizations now want to specify that software handles dates correctly. But what does "handle dates correctly" mean? DateBench provides an answer for at least some date operations.

DateBench consists of several parts described here.

 

Original Intent

 

DateBench was originally intended to provide comparison values for testing date routines in other software. The focus was on code being modified for the millennium change. It was also a demonstration of the WysDoM methodology. DateBench provides a specification of a number of date manipulation routines and a set of Java classes that implement these specifications. The Waysys web site contained a set of Java applets to exercise the Java code. Is there a use for DateBench after the Year 2000?

 

New Uses for DateBench

 

We have found several uses for DateBench since 2000:

 

The WayDate Java class is easier to use and avoids certain problems compared to the Java Date class.
The DateBench specification proves to be a useful component of the Specification Library.
The DateBench applets provide a convenient means of performing various date calculations.

 

Upgrades

 

As a result, we have upgraded DateBench in several ways:

 

The Java code has been updated to reflect changes in Java since the code was originally written in 1997. These changes include implementing the Serializable, Comparable, and Cloneable interfaces.
The WayDate class was refactor to use the Bridge pattern. The class wraps two other classes: one optimized for calculation and one for display.
The Test Case Code has been rewritten to use the JUnit framework.
The applets were modified to use Swing.
A Holiday applet was added.

 

Java Applets to Check Accuracy

 

Use the Java applets to check the accuracy of date calculations in other programs.

 

Single Date Check
Conversion of Day of Year
Date Span
Date Differences
Holidays

 

Related Information

 

Year 2000 Compliance

Formal Specification

WayDate Source Code