Everytime I see this happen, I wonder how much productive time has been
lost due to the quirks of the class. It doesn't help that other values
start with 1 or that WEEK_OF_YEAR ranges from 1 to 53, while
WEEK_OF_MONTH ranges from 0 to 6.
While it's not difficult to create a subclass that acts naturally,
getting a *standard* one that doesn't confuse programmers even more (
considering the original ) is tough.
Anyhow, if you want to avoid writing the durations conversion yourself
every time, I have an article and a class for durations from milliseconds
through weeks available at:
www.conceptgo.com/articles/MillisConverter.html
Joe Sam
Joe Sam Shirah - http://www.conceptgo.com
conceptGO - Consulting/Development/Outsourcing
Java Filter Forum: http://www.ibm.com/developerworks/java/
Just the JDBC FAQs: http://www.jguru.com/faq/JDBC
Going International? http://www.jguru.com/faq/I18N
Que Java400? http://www.jguru.com/faq/Java400
----- Original Message -----
From: "Hallman, Chuck (NIH/NIEHS)" <[EMAIL PROTECTED]>
To: "'Jim Scarborough'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2003 11:01 AM
Subject: RE: [Juglist] Help
> Jim, you are absolutely correct. I did not subtract 1 for the month. Thank
> you very, very much!!
>
_______________________________________________
Juglist mailing list
[EMAIL PROTECTED]
http://trijug.org/mailman/listinfo/juglist_trijug.org