Which classes do I need to change to extend dates to 1800s?

A discussion forum for the JCommon class library.
Post Reply
Bigdaddy
Posts: 5
Joined: Thu Sep 23, 2004 8:25 am

Which classes do I need to change to extend dates to 1800s?

Post by Bigdaddy » Sun Jul 09, 2006 2:38 am

I have run into a problem with JFreeChart using the org.jfree.data.time.Day class which uses the org.jfree.date.SerialDate class from JCommon. The SerialDate class begins at 1900, but I need it to at least begin at 1800. Which classes do I need to modify to achieve this functionality or are there a few threshold parameters that I can modify to get dates that can go back as far as 1800?

Thanks.

Bigdaddy
Posts: 5
Joined: Thu Sep 23, 2004 8:25 am

Post by Bigdaddy » Sun Jul 09, 2006 11:15 am

jcommon: 1.0.5
jfeechart: 1.0.1
java: 1.5.0_06

Ok, I have gone ahead and modified the following classes changing all documentation from the year 1900 to the year 1800 and I have modified logic where needed and everything seems to be working fine.

Modified Classes:

org.jfree.date.AnnualDateRule (documentation)
org.jfree.date.RelativeDayOfWeekRule (documentation)
org.jfree.date.SerialDate (documentation + logic)
org.jfree.date.SpreadsheetDate (documentation + logic)
org.jfree.date.junit.SerialDateTests (documentation + logic)
org.jfree.date.junit.SpreadsheetDateTests (documentation + logic)

If there are any other classes that I should modify, then please let me know.

I would have attached my changes to this post, but that functionality does not seem to be present on this forum.

Thanks.

Mimil
JFreeReport Staff Member
Posts: 69
Joined: Tue Mar 25, 2003 7:33 pm

Post by Mimil » Mon Jul 10, 2006 9:21 am

Hi,

I think you shoud send your modifications to David or Thomas (aka Taqua) to be sure that they will not be lost .... =)
A student of JFree & Pentaho Academies

Bye,
Cedric Pronzato

Post Reply