Java Date Test

Examine your java.util.Date implementation.

These tests are not definitive.
Please independently corroborate any reported problems.


This clock should display the current Local Time and Date, based on the setting of your computer's system time (and time-zone). Leave it running for awhile: it should not drift relative to system time. Also, if you change the current system time or time-zone, this clock should reflect the change.

The above presents the results of several tests of the java.util.Date implementation in your browser. Use the navigation buttons to scroll through the display. I have yet to find a browser or viewer that works perfectly, so don't be surprised by several exceptions and/or errors.
I have tried to make these tests as correct as possible, but I'm as likely as anyone to make a mistake. Therefore, all errors are called "POSSIBLE" ones; if you encounter such a beast, don't take my word for it: try to determine independently whether it's an error or not. If (when ;-) you find an error in these tests, please e-mail me so I can correct the test.
I assume that getTimezoneOffset() returns positive values for time zones west of Greenwich. This is what all the browsers do, even if it's not what the documentation says!
Prev Scroll to next method test results.
Next Scroll to previous method test results.
Pg Up Scroll one page up.
Pg Dn Scroll one page down.
Top Scroll to top of display.
End Scroll to end of display.
Time-Zone Specify your time-zone for getTimezoneOffset() test.
P.S.: Sorry about the gackly U.I.
I tried to use a TextArea, but I found most browsers blew chow all over it!


Created with Roaster(tm)!

The Source


For more stuff to download, go to Codewell Corporation's Publish Area.


Go to Top of page
Go to Jeff Mallatt page
Go to Codewell Corporation page
Java Date Test / Jeff Mallatt / jjm@codewell.com
Jeff Mallatt
15 Allen St., No. 2
Arlington, MA 02474-6809
(781) 641-3327 (day/eve)
Last Updated: 27 Oct 2003

Copyright (C) Jeff Mallatt, 1995-2003. All Rights Reserved.